# Roboflow model does not deploy to Oak D-Lite

**URL:** <https://discuss.roboflow.com/t/roboflow-model-does-not-deploy-to-oak-d-lite/4459>\
**Category:** 🤝  Community Help\
**Created:** [February 11, 2024, 11:23pm UTC](https://discuss.roboflow.com/t/roboflow-model-does-not-deploy-to-oak-d-lite/4459 "2024-02-11T23:23:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![emma-iverson](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/emma-iverson/32/3799_2.png) [@emma-iverson](https://discuss.roboflow.com/u/emma-iverson)\
**Post date:** [February 11, 2024, 11:23pm UTC](https://discuss.roboflow.com/t/roboflow-model-does-not-deploy-to-oak-d-lite/4459/1 "2024-02-11T23:23:50Z")

</div>

- **Project Type: Object Detection**
- **Operating System & Browser: MacOS Sonoma with M1 chip**
- **Project Universe Link or Workspace/Project ID: [How to Use the DECCv3 Object Detection API](https://universe.roboflow.com/decc-lego-sorter/deccv3-vr35s/model/6)**

I am trying to deploy my model to an OAK-D Lite, but when I execute my python script, I get the error message:

```auto
File "/Users/emmaiverson/Luxonis/depthai/legoExample/lego3.py", line 8, in <module>
    rf = RoboflowOak(model="deccv3-vr35s", version="5", api_key="qp2BshcnAkF46Pg30wnP", confidence=0.05, overlap=0.5, rgb=True, depth=True, device=None, blocking=True)
  File "/Users/emmaiverson/Library/Python/3.10/lib/python/site-packages/roboflowoak/ __init__.py", line 34, in __init__
    self.size = (int(self.model_objects["environment"]["RESOLUTION"]), int(self.model_objects["environment"]["RESOLUTION"]))
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'list'

```

Why am I getting this error in the **init**.py file?  
My python code:

```auto
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="deccv3-vr35s", version="5", api_key="XXX...XXX", confidence=0.05, overlap=0.5, 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("FPS ", 1/t)
        print("PREDICTIONS ", [p.json() for p in predictions])

        # setting parameters for depth calculation
        # comment out the following 2 lines out if you're using an OAK without Depth
        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:** ![Lenny](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/lenny/32/2383_2.png) [@Lenny](https://discuss.roboflow.com/u/Lenny)\
**Post date:** [February 11, 2024, 11:24pm UTC](https://discuss.roboflow.com/t/roboflow-model-does-not-deploy-to-oak-d-lite/4459/2 "2024-02-11T23:24:42Z")

</div>

I’m sorry, but your question seems to be incomplete. Could you please provide more details or context? Are you asking about how to create an Object Detection project on Roboflow, or are you asking about the system requirements for running Roboflow on a specific operating system? The more details you provide, the better I can assist you.

* * *

> Hi! I’m Roboflow’s AI powered bot. This is an automated response powered using AI with knowledge from our docs, blog, and forum. If this solves your issue, please mark it as the solution using the checkbox icon. **If this doesn’t solve your issue, please follow up with what you’ve tried/why, and the community will continue to chime in as usual.**

---

<div class="post-metadata">

**Author:** ![Paul](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/paul/32/252_2.png) [@Paul](https://discuss.roboflow.com/u/Paul)\
**Post date:** [February 14, 2024, 3:07pm UTC](https://discuss.roboflow.com/t/roboflow-model-does-not-deploy-to-oak-d-lite/4459/3 "2024-02-14T15:07:26Z")

</div>

Hi @emma-iverson ! It looks like we may have some out of date docs that lead you to using roboflowoak. The best route to follow is to use the official roboflow integration in the DepthAI package. You can follow this guide to see how that’s done: [Deploy Models from Roboflow with the Luxonis DepthAI SDK](https://blog.roboflow.com/deploy-roboflow-model-luxonis-depth-sdk/)

---

<div class="post-metadata">

**Author:** ![emma-iverson](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/emma-iverson/32/3799_2.png) [@emma-iverson](https://discuss.roboflow.com/u/emma-iverson)\
**Post date:** [February 16, 2024, 3:46am UTC](https://discuss.roboflow.com/t/roboflow-model-does-not-deploy-to-oak-d-lite/4459/4 "2024-02-16T03:46:51Z")

</div>

Hi Paul, thank you for the response. I have followed the Apple M1 directions you linked. However, when I try to deploy my model to my Luxonis Oak D Lite, I get this error message about not finding a URL:

➜ python3 lego.py  
loading Roboflow workspace…  
loading Roboflow project…  
Downloading ‘DECCv3’ model from Roboflow server  
Closing OAK camera  
Traceback (most recent call last):  
File “/Users/emmaiverson/depthai/lego.py”, line 20, in   
oak.start(blocking=True)  
File “/Users/emmaiverson/Library/Python/3.10/lib/python/site-packages/depthai\_sdk/oak\_camera.py”, line 286, in start  
self.build() # Build the pipeline  
File “/Users/emmaiverson/Library/Python/3.10/lib/python/site-packages/depthai\_sdk/oak\_camera.py”, line 380, in build  
component.on\_init(self.\_pipeline, self.\_oak.device, self.\_pipeline.getOpenVINOVersion())  
File “/Users/emmaiverson/Library/Python/3.10/lib/python/site-packages/depthai\_sdk/components/nn\_component.py”, line 124, in on\_init  
path = self.\_roboflow.device\_update(device)  
File “/Users/emmaiverson/Library/Python/3.10/lib/python/site-packages/depthai\_sdk/components/integrations/roboflow.py”, line 53, in device\_update  
zipFileReq.raise\_for\_status()  
File “/Users/emmaiverson/Library/Python/3.10/lib/python/site-packages/requests/models.py”, line 953, in raise\_for\_status  
raise HTTPError(http\_error\_msg, response=self)  
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: [https://storage.googleapis.com/roboflow-platform-train/skvC520GouROQD0JPtr0dwYuags2/HZTxMw8LigoKuj5XxpB6/6/roboflow.zip?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=481589474394-compute%40developer.gserviceaccount.com%2F20240216%2Fauto%2Fstorage%2Fgoog4\_request&X-Goog-Date=20240216T034225Z&X-Goog-Expires=901&X-Goog-SignedHeaders=host&X-Goog-Signature=81af81948398df474f76aac634a3d1ead97e5f7e3615d47c3c9b832968ea35d78f476da67876726f741c71e5427ff80ced2b0c127f81f6ee73b52ee85ec6e9827e70eb62b6183438980a5c7681391124ff49a4cee03901681137033d6172d94748161d24e0cbea7ede49d976b54fcbdacd2dbd50a01e1df002ae207b7abea14d5d333f4d3a058c5326e9f4da86257a2e5f0fe7373149b2c37b36bd6d361dc3b2ef0150bbf2827805a178e07396c9559c38c01b4c5071bad9a8b3c46e0835bd67fb696ddb19550163f6543106eb64b7d8c7da915561199ad02238bb0ed99cfabf165c1f23d280ea0dcefc08b27dbcc3a05ebf0064ff2871205100ba17964dd7fe](https://storage.googleapis.com/roboflow-platform-train/skvC520GouROQD0JPtr0dwYuags2/HZTxMw8LigoKuj5XxpB6/6/roboflow.zip?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=481589474394-compute%40developer.gserviceaccount.com%2F20240216%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20240216T034225Z&X-Goog-Expires=901&X-Goog-SignedHeaders=host&X-Goog-Signature=81af81948398df474f76aac634a3d1ead97e5f7e3615d47c3c9b832968ea35d78f476da67876726f741c71e5427ff80ced2b0c127f81f6ee73b52ee85ec6e9827e70eb62b6183438980a5c7681391124ff49a4cee03901681137033d6172d94748161d24e0cbea7ede49d976b54fcbdacd2dbd50a01e1df002ae207b7abea14d5d333f4d3a058c5326e9f4da86257a2e5f0fe7373149b2c37b36bd6d361dc3b2ef0150bbf2827805a178e07396c9559c38c01b4c5071bad9a8b3c46e0835bd67fb696ddb19550163f6543106eb64b7d8c7da915561199ad02238bb0ed99cfabf165c1f23d280ea0dcefc08b27dbcc3a05ebf0064ff2871205100ba17964dd7fe)

This is the code in lego.py:

```auto
from depthai_sdk import OakCamera
import depthai

from roboflow import Roboflow
rf = Roboflow(api_key="###...###")
project = rf.workspace("decc-lego-sorter").project("deccv3-vr35s")

with OakCamera() as oak:
    color = oak.create_camera('color')
    model_config = {
        'source': 'roboflow', # Specify that we are downloading the model from Roboflow
        'model':'deccv3-vr35s/6',
        'key':'####...###'
    }
    nn = oak.create_nn(model_config, color)
    oak.visualize(nn, fps=True)
    oak.start(blocking=True)

```

---

<div class="post-metadata">

**Author:** ![emma-iverson](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/emma-iverson/32/3799_2.png) [@emma-iverson](https://discuss.roboflow.com/u/emma-iverson)\
**Post date:** [February 16, 2024, 3:54am UTC](https://discuss.roboflow.com/t/roboflow-model-does-not-deploy-to-oak-d-lite/4459/5 "2024-02-16T03:54:06Z")

</div>

Hi Paul, thank you for the reply. I re-downloaded depthai and followed the instructions for the M1 Macs. This is my updated code:

from depthai\_sdk import OakCamera  
import depthai

```auto

with OakCamera() as oak:
    color = oak.create_camera('color')
    model_config = {
        'source': 'roboflow', # Specify that we are downloading the model from Roboflow
        'model':'deccv3-vr35s/6',
        'key':'XXXXXXXXX' 
    }
    nn = oak.create_nn(model_config, color)
    oak.visualize(nn, fps=True)
    oak.start(blocking=True)

```

However, I get this error message about not finding a URL:

➜ python3 lego.py  
Downloading ‘DECCv3’ model from Roboflow server  
Closing OAK camera  
Traceback (most recent call last):  
File “/Users/emmaiverson/depthai/lego.py”, line 16, in   
oak.start(blocking=True)  
File “/Users/emmaiverson/Library/Python/3.10/lib/python/site-packages/depthai\_sdk/oak\_camera.py”, line 286, in start  
self.build() # Build the pipeline  
File “/Users/emmaiverson/Library/Python/3.10/lib/python/site-packages/depthai\_sdk/oak\_camera.py”, line 380, in build  
component.on\_init(self.\_pipeline, self.\_oak.device, self.\_pipeline.getOpenVINOVersion())  
File “/Users/emmaiverson/Library/Python/3.10/lib/python/site-packages/depthai\_sdk/components/nn\_component.py”, line 124, in on\_init  
path = self.\_roboflow.device\_update(device)  
File “/Users/emmaiverson/Library/Python/3.10/lib/python/site-packages/depthai\_sdk/components/integrations/roboflow.py”, line 53, in device\_update  
zipFileReq.raise\_for\_status()  
File “/Users/emmaiverson/Library/Python/3.10/lib/python/site-packages/requests/models.py”, line 953, in raise\_for\_status  
raise HTTPError(http\_error\_msg, response=self)  
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: [https://storage.googleapis.com/roboflow-platform-train/skvC520GouROQD0JPtr0dwYuags2/HZTxMw8LigoKuj5XxpB6/6/roboflow.zip?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=481589474394-compute%40developer.gserviceaccount.com%2F20240216%2Fauto%2Fstorage%2Fgoog4\_request&X-Goog-Date=20240216T035221Z&X-Goog-Expires=900&X-Goog-SignedHeaders=host&X-Goog-Signature=2085aea987ccbf58e849f10c3a4c13523a93d7011cd4a7ac063d73914b371650d1024aa3a66c8c914a49a3dc741df39244a18fadd681755fe14e4085e3e36b135146669577ad7b9482089ae2e537cf6e4c6e852b9779133156561c606aa84c83e0aea9706a6942db7454c8c2730ce416c9042f11afe1f6324422043e40ea5fe44c993d97c58bdef78b2b19dd876ce71bafc010ef6ab52aafc5a5b5b7b60abae797f502605f500f93b9d56c951f742783dad40f9dd45711c2ff5ba10422b3ddf301fb7592aabea419595e6d08f7c2b71708b806f7314f06b6979e829fc78679935c8c3103f1617dbf489c558f129dffe50bf6ab0109d2223c08256fd1aa1baa41](https://storage.googleapis.com/roboflow-platform-train/skvC520GouROQD0JPtr0dwYuags2/HZTxMw8LigoKuj5XxpB6/6/roboflow.zip?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=481589474394-compute%40developer.gserviceaccount.com%2F20240216%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20240216T035221Z&X-Goog-Expires=900&X-Goog-SignedHeaders=host&X-Goog-Signature=2085aea987ccbf58e849f10c3a4c13523a93d7011cd4a7ac063d73914b371650d1024aa3a66c8c914a49a3dc741df39244a18fadd681755fe14e4085e3e36b135146669577ad7b9482089ae2e537cf6e4c6e852b9779133156561c606aa84c83e0aea9706a6942db7454c8c2730ce416c9042f11afe1f6324422043e40ea5fe44c993d97c58bdef78b2b19dd876ce71bafc010ef6ab52aafc5a5b5b7b60abae797f502605f500f93b9d56c951f742783dad40f9dd45711c2ff5ba10422b3ddf301fb7592aabea419595e6d08f7c2b71708b806f7314f06b6979e829fc78679935c8c3103f1617dbf489c558f129dffe50bf6ab0109d2223c08256fd1aa1baa41)  
(base)

Do you know why my model is not deploying to my Oak-D Lite?

---

<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:** [March 2, 2024, 9:05pm UTC](https://discuss.roboflow.com/t/roboflow-model-does-not-deploy-to-oak-d-lite/4459/6 "2024-03-02T21:05:41Z")

</div>

Hi @emma-iverson

I’m sorry for the lack of follow up here. Are you still experiencing this issue?

---

<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:** [March 23, 2024, 9:06pm UTC](https://discuss.roboflow.com/t/roboflow-model-does-not-deploy-to-oak-d-lite/4459/7 "2024-03-23T21:06:06Z")

</div>

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