# DepthAI-SDK OAK-D inference not working

**URL:** https://discuss.roboflow.com/t/depthai-sdk-oak-d-inference-not-working/7991
**Category:** 🤝  Community Help
**Tags:** bugs
**Created:** [December 16, 2024, 9:51am UTC](https://discuss.roboflow.com/t/depthai-sdk-oak-d-inference-not-working/7991 "2024-12-16T09:51:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AndreiMoraru123](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/andreimoraru123/32/6168_2.png) [@AndreiMoraru123](https://discuss.roboflow.com/u/AndreiMoraru123)
#### Post date: [December 16, 2024, 9:51am UTC](https://discuss.roboflow.com/t/depthai-sdk-oak-d-inference-not-working/7991/1 "2024-12-16T09:51:10Z")

</div>

Hi folks,

In short, the following config, as per the docs, does not work for a trained model:

```python
from depthai_sdk import OakCamera
import depthai

# Download & deploy a model from Roboflow Universe
# https://universe.roboflow.com

with OakCamera() as oak:
    color = oak.create_camera('color')
    model_config = {
        'source': 'roboflow', # Specify that we are downloading the model from Roboflow
        'model':'rv-tnidz/1',
        'key':'XXXXXXXXXXXXX' # FAKE Private API key, replace with your own!
    }
    nn = oak.create_nn(model_config, color)
    oak.visualize(nn, fps=True)
    oak.start(blocking=True)

```

The error goes like:

```auto
 raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://storage.googleapis.com/roboflow-platform-train/SWp6WDRWlxbk0xGiG4YMrQMRhEC2/b5CVHGA4lkLQGxEFlwXB/1/roboflow.zip?XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

```

The project name and version are correct. If they wouldn’t be, the error would be, for example:

```auto
Exception: {'message': 'Unsupported get request. Version with ID "rv-tnidz/2" does not exist or cannot be loaded due to missing permissions.', 'status': 404, 'type': 'GraphMethodException', 'hint': 'You can find the API docs at https://docs.roboflow.com'}

```

The API key is also correct. If it wouldn’t be, the error would be:

```auto
Exception: {'message': 'This API key does not exist (or has been revoked).', 'status': 401, 'type': 'OAuthException', 'hint': 'You may retrieve your API key via the Roboflow Dashboard. Go to Account > Roboflow Keys to retrieve yours.', 'key': 'sdasddsdasdadasd'}

```

The device is also correctly connected and can run other apps as well:

```auto
❯ python run.py
C:\Users\Andrei\anaconda3\envs\dai\lib\site-packages\depthai_sdk\oak_camera.py:220: UsbWarning: Device connected in USB2 mode! This might cause some issues. In such case, please try using a (different) USB3 cable, or force USB2 mode 'with OakCamera(usb_speed='usb2') as oak:'
  warnings.warn("Device connected in USB2 mode! This might cause some issues. "

```

Any ideas would be constructive! Or if anyone from the community or roboflow team happens to have a workflow that’s more manual, like downloading the model blob and loading it in via the depthai API and not the SDK, that would also be a great thing to have =)

My device is an OAK-D Lite, but I suspect this should not matter much

Thanks a lot

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)
#### Post date: [January 6, 2025, 9:51am UTC](https://discuss.roboflow.com/t/depthai-sdk-oak-d-inference-not-working/7991/2 "2025-01-06T09:51:35Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
