# Roboflow trained Model does not find predections on OAK-D-Lite

**URL:** <https://discuss.roboflow.com/t/roboflow-trained-model-does-not-find-predections-on-oak-d-lite/2668>\
**Category:** 🤝  Community Help\
**Created:** [July 14, 2023, 11:05pm UTC](https://discuss.roboflow.com/t/roboflow-trained-model-does-not-find-predections-on-oak-d-lite/2668 "2023-07-14T23:05:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeep406](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/sandeep406/32/2375_2.png) [@sandeep406](https://discuss.roboflow.com/u/sandeep406)\
**Post date:** [July 14, 2023, 11:05pm UTC](https://discuss.roboflow.com/t/roboflow-trained-model-does-not-find-predections-on-oak-d-lite/2668/1 "2023-07-14T23:05:39Z")

</div>

I have trained a model using Roboflow work space. The model works fine with web cam web interface.

When I try running the inference on OAK-D-Lite from below code. I can see the stream but no predictions found. I would appreciate any inputs regarding this.

from roboflowoak import RoboflowOak  
import cv2  
import time  
import numpy as np

if **name** == ‘ **main** ’:  
# instantiating an object (rf) with the RoboflowOak module  
rf = RoboflowOak(model=“airport-checked-bags”, confidence=0.05, overlap=0.5,  
version=“1”, api\_key=“gO1Aqw06dd77Uq46Jzre”, rgb=True,  
depth=True, device=None, blocking=True)  
# Running our model and displaying the video output with detections  
while True:  
t0 = time.time()  
# The rf.detect() function runs the model inference  
result, frame, raw\_frame, depth = rf.detect()  
predictions = result[“predictions”]  
#{  
# predictions:  
# [ {  
# x: (middle),  
# y:(middle),  
# width:  
# height:  
# depth: ###-\>  
# confidence:  
# class:  
# mask: {  
# ]  
#}  
#frame - frame after preprocs, with predictions  
#raw\_frame - original frame from your OAK  
#depth - depth map for raw\_frame, center-rectified to the center camera

```
    # timing: for benchmarking purposes
    t = time.time()-t0
    print("INFERENCE TIME IN MS ", 1/t)
    print("PREDICTIONS ", [p.json() for p in predictions])

    # setting parameters for depth calculation
    max_depth = np.amax(depth)
    cv2.imshow("depth", depth/max_depth)
    # displaying the video feed as successive frames
    cv2.imshow("frame", frame)

    # how to close the OAK inference window / stop inference: CTRL+q or CTRL+c
    if cv2.waitKey(1) == ord('q'):
        break

```

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [July 15, 2023, 2:20am UTC](https://discuss.roboflow.com/t/roboflow-trained-model-does-not-find-predections-on-oak-d-lite/2668/2 "2023-07-15T02:20:12Z")

</div>

Hi @sandeep406

Sorry to hear you’re having issues. I’ve filed a bug report with the team and hopefully, it’ll be fixed soon. In the meantime, you could consider some [alternative deployment options](https://docs.roboflow.com/deploy/supported-deployment-devices).

---

<div class="post-metadata">

**Author:** ![KoKonutZzz](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/kokonutzzz/32/2511_2.png) [@KoKonutZzz](https://discuss.roboflow.com/u/KoKonutZzz)\
**Post date:** [July 30, 2023, 11:03pm UTC](https://discuss.roboflow.com/t/roboflow-trained-model-does-not-find-predections-on-oak-d-lite/2668/3 "2023-07-30T23:03:10Z")

</div>

Hi,  
I actually encounter the same problem. Is this bug still being fixed?

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [August 5, 2023, 1:53pm UTC](https://discuss.roboflow.com/t/roboflow-trained-model-does-not-find-predections-on-oak-d-lite/2668/4 "2023-08-05T13:53:36Z")

</div>

@sandeep406: We noticed you posted your private API key in your post. We’ve revoked the use of that key. You can generate a new one in your workspace settings.

Your API key can be used to run inference, upload images, get info, and almost anything regarding your account and should never be posted publicly. We don’t want your accounts getting accessed by unauthorized people, so please be careful in the future!

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [August 5, 2023, 1:56pm UTC](https://discuss.roboflow.com/t/roboflow-trained-model-does-not-find-predections-on-oak-d-lite/2668/5 "2023-08-05T13:56:38Z")

</div>

Hi @sandeep406 and @KoKonutZzz

We pushed a fix for our OAK deployment last week. Can you confirm that you’re using version 0.0.11 (or later)? You can update using pip:

`pip install roboflowoak==0.0.11`

---

<div class="post-metadata">

**Author:** ![KoKonutZzz](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/kokonutzzz/32/2511_2.png) [@KoKonutZzz](https://discuss.roboflow.com/u/KoKonutZzz)\
**Post date:** [August 6, 2023, 10:19pm UTC](https://discuss.roboflow.com/t/roboflow-trained-model-does-not-find-predections-on-oak-d-lite/2668/6 "2023-08-06T22:19:22Z")

</div>

Hi @leo  
Thank you for the update, but it still failed this time, with a different feedback:

```auto
Traceback (most recent call last):
  File "roboflow_deployment.py", line 25, in <module>
    rf = RoboflowOak(model="dirt-overflowing", confidence=0.05, overlap=0.5,
  File "/Users/cloudscapespare/anaconda3/envs/csl-load-count-ml/lib/python3.8/site-packages/roboflowoak/ __init__.py", line 59, in __init__
    self.cache_path = self.find_weights()
  File "/Users/cloudscapespare/anaconda3/envs/csl-load-count-ml/lib/python3.8/site-packages/roboflowoak/ __init__.py", line 135, in find_weights
    return download_blob(
  File "/Users/cloudscapespare/anaconda3/envs/csl-load-count-ml/lib/python3.8/site-packages/roboflowoak/api.py", line 25, in download_blob
    raise Exception(str(api_data.json()))
Exception: {'error': {'message': 'This model endpoint is over your the device limit of your workspace.', 'type': 'QuotaException', 'hint': 'If have reached this in error, please let us know.'}}

```

I tried both using a OAK-D Lite and a OAK-D S2, not sure if other users have had the same problem. Any thoughts please?

---

<div class="post-metadata">

**Author:** ![leo](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/leo/32/2228_2.png) [@leo](https://discuss.roboflow.com/u/leo)\
**Post date:** [August 7, 2023, 11:33pm UTC](https://discuss.roboflow.com/t/roboflow-trained-model-does-not-find-predections-on-oak-d-lite/2668/7 "2023-08-07T23:33:22Z")

</div>

@sandeep406

> [@Luxonis OAK-D Lite Deployment Failure](https://discuss.roboflow.com/t/luxonis-oak-d-lite-deployment-failure/2874/2):
>
> We believe the issue was caused by a breaking change to the Depthai API. We have pushed v0.0.12 to PyPi which uses the updated API. You can update with `pip install roboflowoak==0.0.12`.

---

<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:** [August 14, 2023, 11:33pm UTC](https://discuss.roboflow.com/t/roboflow-trained-model-does-not-find-predections-on-oak-d-lite/2668/8 "2023-08-14T23:33:32Z")

</div>

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