Can not init Myriad device: NC_ERROR

Can not init Myriad device: NC_ERROR


Intel i5-7300CPU

GPU intel HD Graphics 620

VMware Ubuntu 16.04.6 LTS 

openVINO R2   with NCS2

 

error code:

~/inference_engine_samples_build/intel64/Release$ ./classification_sample_async -i /opt/intel/openvino/deployment_tools/demo/car.png -m ~/openvino_models/ir/FP16/classification/squeezenet/1.1/caffe/squeezenet1.1.xml -d MYRIAD
[ INFO ] InferenceEngine: 
    API version ............ 2.0
    Build .................. custom_releases/2019/R2_f5827d4773ebbe727c9acac5f007f7d94dd4be4e
    Description ....... API
[ INFO ] Parsing input parameters
[ INFO ] Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /opt/intel/openvino/deployment_tools/demo/car.png
[ INFO ] Creating Inference Engine
    MYRIAD
    myriadPlugin version ......... 2.0
    Build ........... 27579

[ INFO ] Loading network files
[ INFO ] Preparing input blobs
[ WARNING ] Image is resized from (787, 259) to (227, 227)
[ INFO ] Batch size is 1
[ INFO ] Loading model to the device
E: [ncAPI] [    645153] [classification_] ncDeviceOpen:844    Failed connection to device (1.1-ma2480) with error 7
[ ERROR ] Can not init Myriad device: NC_ERROR

 

i  run /install_NCS_udev_rules.sh 

install successfully

before i ran the demo, i can list usb

lsusb

Bus 001 Device 010: ID 03e7:2485 

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub

Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

 

once begin to run the demo, the usb diconnect and lose the serial

 

what is the problem?

Note that i run the demo successfully with NCS2 in Win10

10 posts / 0 new

Hello DongzhiZ,

The computer vision forum for OpenVINO is a more appropriate place for discussion on this topic, I will move this thread there. That being said, I'm concerned about support through OS virtualization software... that may or may not be in the scope of a software supported configuration.

 

-MichaelC


Dear Zhu, Dongzhi,

This Virtual Box USB OpenVino Post may help you. It's not VMWare but the symptom may be the same, which is:

It seems NCS2 USB device ID changes when script starts loading model to MYRIAD.

I was able to resolve it by adding a new USB device filter with VID= 03e7 and PID=f63b in addition to VID= 03e7 and PID=2485 in Virtualbox USB settings.

 

Hope this solves your problem

Hope it helps,

Thanks,

Shubha


Quote:

Shubha R. (Intel) wrote:

Dear Zhu, Dongzhi,

This Virtual Box USB OpenVino Post may help you. It's not VMWare but the symptom may be the same, which is:

It seems NCS2 USB device ID changes when script starts loading model to MYRIAD.

I was able to resolve it by adding a new USB device filter with VID= 03e7 and PID=f63b in addition to VID= 03e7 and PID=2485 in Virtualbox USB settings.

 

Hope this solves your problem

Hope it helps,

Thanks,

Shubha

 

Dear Shubha:

    I solved my problem by changing USB controller from 2.0 to 3.0 for all my usb filters in my Virtual machine settings .

    Thanks a lot for your suggestion!

Dongzhi


Quote:

MICHAEL C. (Intel) wrote:

Hello DongzhiZ,

The computer vision forum for OpenVINO is a more appropriate place for discussion on this topic, I will move this thread there. That being said, I'm concerned about support through OS virtualization software... that may or may not be in the scope of a software supported configuration.

 

-MichaelC

 

uration.

 

Hello MichaelC:

 I change USB controller from 2.0 to 3.0 for all my usb filters in my Virtual machine settings  and solved the problem,.

 Thank you for your suggestions.

 

Dongzhi

 


Dear Dongzhi,

This is a great find and thank you for sharing with the OpenVino community ! It's always great to help each other out.

Shubha


I get the identical error message on my raspberry pi 4 with Buster :"E: [ncAPI] [    599854] [object_detectio] ncDeviceOpen:859    Device doesn't appear after boot"

Setup:
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux

Installed is: OpenVINI 4.1.2 and opencv newest version

LSUSB shows:
pi@raspberrypi:~ $ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 18a5:0302 Verbatim, Ltd Flash Drive
Bus 001 Device 008: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 011: ID 03e7:2485 Intel Movidius MyriadX
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 

I did these setup exactly es desribed in the Intel site: https://software.intel.com/en-us/articles/raspberry-pi-4-and-intel-neura... and the corespondig site.

Especially the usb rules and user setting are done.

Tests are done with 

  • Benchmark app: 
    ././benchmark_app  -i /home/pi/Pictures/president_reagan-62x62.png -m ~/models/age-gender-recognition-retail-0013.xml –pp ./lib –api async -d MYRIAD
  • object_detection_sample_ssd
    ./object_detection_sample_ssd  -i /home/pi/Pictures/PNGs-Von-723/frame_0001.jpg -m ~/models/frozen_inference_graph.xml  -d MYRIAD

Output from the last:
(cv) pi@raspberrypi:~/OpenVINO/dldt/inference-engine/bin/armv7l/Release $ ./object_detection_sample_ssd  -i /home/pi/Pictures/PNGs-Von-723/frame_0001.jpg -m ~/models/frozen_inference_graph.xml  -d MYRIAD
[ INFO ] InferenceEngine: 
    API version ............ 2.1
    Build .................. custom_2019_b0c5accaf8e0c0fac17aaef688478d7f391d05bb
    Description ....... API
Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /home/pi/Pictures/PNGs-Von-723/frame_0001.jpg
[ INFO ] Loading Inference Engine
[ INFO ] Device info: 
    MYRIAD
    myriadPlugin version ......... 2.1
    Build ........... custom_2019_b0c5accaf8e0c0fac17aaef688478d7f391d05bb
[ INFO ] Loading network files:
    /home/pi/models/frozen_inference_graph.xml
    /home/pi/models/frozen_inference_graph.bin
[ INFO ] Preparing input blobs
[ INFO ] Batch size is 1
[ INFO ] Preparing output blobs
[ INFO ] Loading model to the device
E: [ncAPI] [    599854] [object_detectio] ncDeviceOpen:859    Device doesn't appear after boot
[ ERROR ] Can not init Myriad device: NC_ERROR
 

Thanks in advance for any hints


Hi Georg,

Could you provide the content of the /etc/udev/rules.d/*myriad-usbboot.rules? Also, it looks like you built OpenVINO from source, could you try using the pre-built package?

Please follow these instructions and download the following OpenVINO toolkit for Raspbian OS package.

https://download.01.org/opencv/2019/openvinotoolkit/R3/l_openvino_toolki...

Regards,

Jesus


I get the same error with INCS2 on Windows 10 without any virtual boxes. To tell the truth, it works properly from time to time. But in some condition it happens and then nothing helps, including driver re-installation, system reboot, NOTHING. And after some valuable amount of time it works again!

Windows 10

OpenVINO 2020.1 (and OpenVINO2019.3 as well)

INCS2

When INCS2 is recognized by system as Movidius MyriadX among Universal Serial Bus devices output of object_detection_demo_ssd_async.exe looks like this:

InferenceEngine: 00007FF8D48CB740                                                                                                                                                         
[ INFO ] Parsing input parameters                                                                                                                                                         
[ INFO ] Reading input                                                                                                                                                                    
MFX: Can't initialize session
[ INFO ] Loading Inference Engine
[ INFO ] Device info: 
    MYRIAD
    myriadPlugin version ......... 2.1
    Build ........... 37988
[ INFO ] Loading network files
[ INFO ] Batch size is forced to  1.
[ INFO ] Checking that the inputs are as the demo expects
[ INFO ] Checking that the outputs are as the demo expects
[ INFO ] Loading model to the device
<[35mE: [ncAPI] [         0] [] ncDeviceOpen:1012       Failed to find booted device after boot<[0m                                                                                       
[ ERROR ] Can not init Myriad device: NC_ERROR

 

While loading model to the device Windows notification appears that said:

The last USB device you connected to this computer malfunctioned, and Windows does not recogize it. 

Recommendation: Try reconnecting the device. If Windows still does not recognize it, your device may not be working properly.

After that device is shown in Device Manager as WinUsb Device.

demo output looks like this:

InferenceEngine: 00007FF8D40FB740
[ INFO ] Parsing input parameters
[ INFO ] Reading input
MFX: Can't initialize session
[ INFO ] Loading Inference Engine
[ INFO ] Device info: 
    MYRIAD
    myriadPlugin version ......... 2.1
    Build ........... 37988
[ INFO ] Loading network files
[ INFO ] Batch size is forced to  1.
[ INFO ] Checking that the inputs are as the demo expects
[ INFO ] Checking that the outputs are as the demo expects
[ INFO ] Loading model to the device
[ ERROR ] Can not init Myriad device: NC_ERROR 

 


Hi, I would need your help, on the same NC_ERROR issue I am facing, when using OpenVINO DL Workbench. I strictly followed the docker install procedure (https://docs.openvinotoolkit.org/latest/_docs_Workbench_DG_Install_from_...). Then, from the UI, after having imported the model and the data and selected the Myriad environment, the inference stops at 23% with the following error messge: "Can not init Myriad device: NC_ERROR". But it works using the CPU environment.

Any Idea?

Thanks in advance.

Leave a Comment

Please sign in to add a comment. Not a member? Join today