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.

OAK-D not recognized after Myriad X compilation command

See original GitHub issue

Describe the bug I was trying to compile yolov5_s into .blob format, which I succeeded, see log example:

$MYRIAD_COMPILE -m yolov5s_opt.xml -ip U8 -VPU_NUMBER_OF_SHAVES 4 -VPU_NUMBER_OF_CMX_SLICES 4
Inference Engine: 
	API version ............ 2.1
	Build .................. 2021.2.0-1877-176bdf51370-releases/2021/2
	Description ....... API
[Warning][VPU][Config] Deprecated option was used : VPU_MYRIAD_PLATFORM
Done

I did this compilation several times, because I was getting errors when using the generated blob file for inference on the OAK-D. The compilations were done with the OAK-D unplugged, except for one time where I compiled for Myriad X with the device connected. That time the Log was different (I am sorry but I did not save the log to show you), there was an error message before the “Done”. The command that generated the strange log was

$MYRIAD_COMPILE -m yolov5s_opt.xml -ip FP32 -op FP32

Unfortunately, this log does not appear anymore, even if I run the same command.

Now comes the strange part. After that point I am not able to run any model on the device even the examples. I tried to run the examples from Gen1 and Gen2 API. For the Gen1, it waits 10 seconds and it does not find any device. For the Gen2 examples it outputs the following:

with dai.Device(pipeline) as device:
RuntimeError: No available devices

So again no device found.

I tried to see if the camera was being recognized by running on the terminal: lsusb with the device connected and not connected: There was no difference on the output:

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 13d3:3491 IMC Networks 
Bus 001 Device 003: ID 138a:0010 Validity Sensors, Inc. VFS Fingerprint sensor
Bus 001 Device 002: ID 0bda:58b3 Realtek Semiconductor Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I have tried using other USB port (3 available all 3.0) and using Windows 10, which does not recognize the device as well.

Moreover, I could not replicate the strange log during the compilation for the Myriad X. If I try to run the same command

Any hints?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
alex-luxoniscommented, Mar 12, 2021

Ok, so this makes sense, it wasn’t clear that the device was not power-cycled.

So what happens is: as our device exposes the MyriadX ROM bootloader interface, OpenVINO loads the NCS2 firmware to it (not exactly clear why it does that, and not sure if there is some option to disable this behavior), but somehow the device fails to boot up with the NCS2 firmware, as it also doesn’t show up in lsusb. Then it is left in this state, and only a hard-reset (inaccesible) or power-cycle will recover it.

We should check ourselves if this behavior is reproducible with 2021.2, as normally the Luxonis devices should work with OpenVINO directly.

1reaction
alex-luxoniscommented, Mar 11, 2021

There is no need to reset, and no way actually, as OAK-1 and OAK-D don’t have internal storage to boot from, but everything is loaded over USB. A simple power-cycle should fix issues that might appear.

Is the device powered by the 5V adapter? If yes, could you try removing it and powering over USB only.

Also could you run dmesg -w and see if any new activity appears there while plugging and unplugging the USB cable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Some blobs for myriad cannot be compiled using ...
Solved: I have two questions about converting a model using myriad-compile.exe. 1) I'm trying to convert a model to blob format for OAK-D...
Read more >
FAQs & How-To - DepthAI documentation - Luxonis
So we built the platform - known as DepthAI and the OpenCV AI Kit (OAK) - which allows folks to embed performant, spatial...
Read more >
Introduction to OAK-D and DepthAI - LearnOpenCV
This is an introductory post to OpenCV AI Kit with Depth. You will learn about the OAK device and the depthai pipeline for...
Read more >
Deploy A Custom Model to the Luxonis OAK - A Quickstart Guide
We've trained an initial model to have the OAK recognize chess ... The OAK comes with a 4K camera and a Myriad X...
Read more >
First tensorflow object detection model - from image to .pb ...
From OpenVINO perspective you may refer to this Object Detection Python Demo since this demo is rather similar to your aim.
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