question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Many of the example CNN don't download

See original GitHub issue

Describe the bug I created a virtual env, start the demo

virtualenv -p python3 venv
source venv/bin/activate
python install_requirements.py
python3 depthai_demo.py -cnn deeplabv3p_person

I then get the following error:

(venv) nlbutts@Dell-G15-5515:~/projects/depthai$ python3 depthai_demo.py -cnn deeplabv3p_person
Using depthai module from:  /home/nlbutts/projects/depthai/venv/lib/python3.8/site-packages/depthai.cpython-38-x86_64-linux-gnu.so
Depthai version installed:  2.15.1.0.dev+04addaccd6edfe40e58df7156f0c5acfa2d7a6ff
Setting up demo...
Available devices:
[0] 1844301051A30C1300 [X_LINK_UNBOOTED]
USB Connection speed: UsbSpeed.SUPER
Downloading /home/nlbutts/.cache/blobconverter/deeplabv3p_person_openvino_2021.4_6shave.blob...
{
    "exit_code": 1,
    "message": "Command failed with exit code 1, command: /app/venvs/venv2021_4/bin/python /app/model_compiler/openvino_2021.4/downloader.py --precisions FP16 --output_dir /tmp/blobconverter/e9f75f184a61478096457dfb6e2a60ee --cache_dir /tmp/modeldownloader/2021_4 --num_attempts 5 --name deeplabv3p_person --model_root /tmp/blobconverter/e9f75f184a61478096457dfb6e2a60ee",
    "stderr": "########## Error: Downloaded file is shorter (2202 B) than expected (138536 B)\n########## Error: Downloaded file is shorter (2202 B) than expected (138536 B)\n########## Error: Downloaded file is shorter (2202 B) than expected (138536 B)\n########## Error: Downloaded file is shorter (2202 B) than expected (138536 B)\n########## Error: Downloaded file is shorter (2202 B) than expected (138536 B)\n",
    "stdout": "################|| Downloading deeplabv3p_person ||################\n\n========== Downloading /tmp/blobconverter/e9f75f184a61478096457dfb6e2a60ee/deeplabv3p_person/FP16/deeplabv3p_person.xml\n... 1%, 2 KB, 9656 KB/s, 0 seconds passed\nWill retry in 10 seconds...\n... 1%, 2 KB, 32730 KB/s, 0 seconds passed\nWill retry in 10 seconds...\n... 1%, 2 KB, 25489 KB/s, 0 seconds passed\nWill retry in 10 seconds...\n... 1%, 2 KB, 32210 KB/s, 0 seconds passed\nWill retry in 10 seconds...\n... 1%, 2 KB, 20372 KB/s, 0 seconds passed\n\nFAILED:\ndeeplabv3p_person\n"
}
  File "depthai_demo.py", line 679, in run
    self.instance.run_all(self.conf)
  File "depthai_demo.py", line 128, in run_all
    self.setup(conf)
  File "depthai_demo.py", line 286, in setup
    blobPath=self._blobManager.getBlob(shaves=self._conf.shaves, openvinoVersion=self._nnManager.openvinoVersion),
  File "/home/nlbutts/projects/depthai/depthai_sdk/src/depthai_sdk/managers/blob_manager.py", line 108, in getBlob
    self._blobPath = blobconverter.from_config(
  File "/home/nlbutts/projects/depthai/venv/lib/python3.8/site-packages/blobconverter/__init__.py", line 488, in from_config
    return compile_blob(blob_name=name, req_data=body, req_files=files, **kwargs)
  File "/home/nlbutts/projects/depthai/venv/lib/python3.8/site-packages/blobconverter/__init__.py", line 322, in compile_blob
    response.raise_for_status()
  File "/home/nlbutts/projects/depthai/venv/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 400 Client Error: BAD REQUEST for url: https://blobconverter.luxonis.com/compile?version=2021.4&no_cache=False

Attach system log

{
    "architecture": "64bit ELF",
    "machine": "x86_64",
    "platform": "Linux-5.13.0-37-generic-x86_64-with-glibc2.29",
    "processor": "x86_64",
    "python_build": "default Mar 15 2022 12:22:08",
    "python_compiler": "GCC 9.4.0",
    "python_implementation": "CPython",
    "python_version": "3.8.10",
    "release": "5.13.0-37-generic",
    "system": "Linux",
    "version": "#42~20.04.1-Ubuntu SMP Tue Mar 15 15:44:28 UTC 2022",
    "win32_ver": "",
    "packages": [
        "argon2-cffi==21.3.0",
        "argon2-cffi-bindings==21.2.0",
        "asttokens==2.0.5",
        "attrs==21.4.0",
        "backcall==0.2.0",
        "beautifulsoup4==4.10.0",
        "bleach==4.1.0",
        "blobconverter==1.2.9",
        "boto3==1.21.28",
        "botocore==1.24.28",
        "certifi==2021.10.8",
        "cffi==1.15.0",
        "charset-normalizer==2.0.12",
        "cryptography==36.0.2",
        "cycler==0.11.0",
        "debugpy==1.6.0",
        "decorator==5.1.1",
        "defusedxml==0.7.1",
        "Deprecated==1.2.13",
        "depthai==2.15.1.0.dev0+04addaccd6edfe40e58df7156f0c5acfa2d7a6ff",
        "-e git+https://github.com/luxonis/depthai.git@eb6869be6af792e010bc884659bac048decd5377#egg=depthai_sdk&subdirectory=depthai_sdk",
        "entrypoints==0.4",
        "executing==0.8.3",
        "ffmpy3==0.2.4",
        "fonttools==4.31.2",
        "gcloud==0.18.3",
        "googleapis-common-protos==1.56.0",
        "httplib2==0.20.4",
        "idna==3.3",
        "importlib-resources==5.6.0",
        "ipykernel==6.10.0",
        "ipython==8.2.0",
        "ipython-genutils==0.2.0",
        "ipywidgets==7.7.0",
        "jedi==0.18.1",
        "Jinja2==3.1.1",
        "jmespath==1.0.0",
        "jsonschema==4.4.0",
        "jupyter-client==7.1.2",
        "jupyter-core==4.9.2",
        "jupyterlab-pygments==0.1.2",
        "jupyterlab-widgets==1.1.0",
        "jwcrypto==1.0",
        "kiwisolver==1.4.2",
        "MarkupSafe==2.1.1",
        "matplotlib==3.5.1",
        "matplotlib-inline==0.1.3",
        "mistune==0.8.4",
        "nbclient==0.5.13",
        "nbconvert==6.4.5",
        "nbformat==5.2.0",
        "nest-asyncio==1.5.4",
        "notebook==6.4.10",
        "numpy==1.22.3",
        "oauth2client==4.1.3",
        "open3d==0.10.0.0",
        "opencv-contrib-python==4.5.1.48",
        "opencv-python==4.5.1.48",
        "packaging==21.3",
        "pandocfilters==1.5.0",
        "parso==0.8.3",
        "pexpect==4.8.0",
        "pickleshare==0.7.5",
        "Pillow==9.0.1",
        "pip==22.0.4",
        "pkg_resources==0.0.0",
        "prometheus-client==0.13.1",
        "prompt-toolkit==3.0.28",
        "protobuf==3.20.0rc2",
        "psutil==5.9.0",
        "ptyprocess==0.7.0",
        "pure-eval==0.2.2",
        "pyasn1==0.4.8",
        "pyasn1-modules==0.2.8",
        "pycparser==2.21",
        "pycryptodome==3.14.1",
        "Pygments==2.11.2",
        "pyparsing==3.0.7",
        "PyQt5==5.15.5",
        "PyQt5-Qt5==5.15.2",
        "PyQt5-sip==12.9.1",
        "Pyrebase4==4.5.0",
        "pyrsistent==0.18.1",
        "python-dateutil==2.8.2",
        "python-jwt==3.3.2",
        "pytube==12.0.0",
        "PyTurboJPEG==1.6.4",
        "pyusb==1.2.1",
        "PyYAML==6.0",
        "pyzmq==22.3.0",
        "requests==2.26.0",
        "requests-toolbelt==0.9.1",
        "rsa==4.8",
        "s3transfer==0.5.2",
        "Send2Trash==1.8.0",
        "sentry-sdk==1.5.1",
        "setuptools==44.0.0",
        "six==1.16.0",
        "soupsieve==2.3.1",
        "stack-data==0.2.0",
        "terminado==0.13.3",
        "testpath==0.6.0",
        "tornado==6.1",
        "traitlets==5.1.1",
        "urllib3==1.26.9",
        "wcwidth==0.2.5",
        "webencodings==0.5.1",
        "wheel==0.34.2",
        "widgetsnbextension==3.6.0",
        "wrapt==1.14.0",
        "zipp==3.7.0"
    ],
    "usb": [
        {
            "port": 0,
            "vendor_id": "0x1d6b",
            "product_id": "0x0003",
            "speed": "SuperPlus"
        },
        {
            "port": 0,
            "vendor_id": "0x1d6b",
            "product_id": "0x0002",
            "speed": "High"
        },
        {
            "port": 2,
            "vendor_id": "0x03e7",
            "product_id": "0xf63b",
            "speed": "Super"
        },
        {
            "port": 2,
            "vendor_id": "0x05e3",
            "product_id": "0x0620",
            "speed": "Super"
        },
        {
            "port": 1,
            "vendor_id": "0x17e9",
            "product_id": "0x6006",
            "speed": "Super"
        },
        {
            "port": 1,
            "vendor_id": "0x05e3",
            "product_id": "0x0620",
            "speed": "Super"
        },
        {
            "port": 0,
            "vendor_id": "0x1d6b",
            "product_id": "0x0003",
            "speed": "SuperPlus"
        },
        {
            "port": 4,
            "vendor_id": "0x0c45",
            "product_id": "0x6a09",
            "speed": "High"
        },
        {
            "port": 3,
            "vendor_id": "0x8087",
            "product_id": "0x0029",
            "speed": "Full"
        },
        {
            "port": 4,
            "vendor_id": "0x1532",
            "product_id": "0x0203",
            "speed": "Full"
        },
        {
            "port": 1,
            "vendor_id": "0x06c4",
            "product_id": "0xc411",
            "speed": "Full"
        },
        {
            "port": 3,
            "vendor_id": "0x05e3",
            "product_id": "0x0608",
            "speed": "High"
        },
        {
            "port": 2,
            "vendor_id": "0x1532",
            "product_id": "0x0071",
            "speed": "Full"
        },
        {
            "port": 2,
            "vendor_id": "0x05e3",
            "product_id": "0x0610",
            "speed": "High"
        },
        {
            "port": 1,
            "vendor_id": "0x05e3",
            "product_id": "0x0610",
            "speed": "High"
        },
        {
            "port": 0,
            "vendor_id": "0x1d6b",
            "product_id": "0x0002",
            "speed": "High"
        }
    ],
    "uname": [
        "Linux Dell-G15-5515 5.13.0-37-generic #42~20.04.1-Ubuntu SMP Tue Mar 15 15:44:28 UTC 2022 x86_64 x86_64"
    ]

Additional context This occurs when I try to run Yolov3 or Yolov3-tiny demos.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
VanDavvcommented, Mar 31, 2022

@nlbutts just updated the mentioned PR, all networks should work as expected

0reactions
VanDavvcommented, Mar 31, 2022

The PR got merged and closed the issue automatically, but if you still experience any issues feel free to reopen (I’ll also continue to test on my side)

Read more comments on GitHub >

github_iconTop Results From Across the Web

The food that can feed, and maybe save, the planet: Bugs - CNN
The most commonly eaten insect groups globally, according to the FAO, are ants; beetles; bees; caterpillars; cicadas; crickets; dragonflies; ...
Read more >
What should I do when my neural network doesn't learn?
Here's an example of a question where the problem appears to be one of model configuration or hyperparameter choice, but actually the problem ......
Read more >
137169 - CNN Video is extra zoomed-in with PepperFlash
Launch Chrome and go to http://www.cnn.com/video/ ... The problem occurs when the plugin gets resized -- we don't resize our native surface correctly...
Read more >
CNN: Breaking US & World News on the App Store
Download CNN : Breaking US & World News and enjoy it on your iPhone, iPad, ... from across the world to keep you...
Read more >
CNN / Transfer Learning Example - File Exchange - MathWorks
Download and share free MATLAB code, including functions, models, apps, support packages and toolboxes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found