Community
cancel
Showing results for 
Search instead for 
Did you mean: 
samimk
Beginner
131 Views

RuntimeError: Can not init Myriad device: NC_ERROR on RaspberryPi 3 with NCS Ver. 1

Jump to solution

I am trying to install OpenVINO on RaspberryPi 3 with NCS. Unfortunately, after several attempts, the procedure which I followed step-by-step was unsuccessful. The procedure itself ran smoothly, without any errors, but I haven't successfully executed any model, neither from examples nor my own. For example, when I try to execute 

object_detection_sample_ssd -m face-detection-adas-0001.xml -d MYRIAD -i ~/test1.jpg

 or the python version of the same example, I get:

        API version ............ 2.1
        Build .................. 2021.2.0-1877-176bdf51370-releases/2021/2
        Description ....... API
Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /home/pi/test1.jpg
[ INFO ] Loading Inference Engine
[ INFO ] Device info: 
        MYRIAD
        myriadPlugin version ......... 2.1
        Build ........... 2021.2.0-1877-176bdf51370-releases/2021/2
[ INFO ] Loading network files:
        face-detection-adas-0001.xml
[ INFO ] Preparing input blobs
[ INFO ] Batch size is 1
[ INFO ] Preparing output blobs
[ INFO ] Loading model to the device
[ ERROR ] Can not init Myriad device: NC_ERROR

The same error appears in my own code, when executing:

load_network(network=net, device_name='MYRIAD')

The NCS is recognized, and dmesg  and lsusb print:

[  988.691888] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
[  988.822626] usb 1-1.4: New USB device found, idVendor=03e7, idProduct=2150, bcdDevice= 0.01
[  988.822646] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  988.822660] usb 1-1.4: Product: Movidius MA2X5X
[  988.822674] usb 1-1.4: Manufacturer: Movidius Ltd.
[  988.822687] usb 1-1.4: SerialNumber: 03e72150

Bus 001 Device 005: ID 03e7:2150 Intel Myriad VPU [Movidius Neural Compute Stick]

udev rules are updated with:

SUBSYSTEM=="usb", ATTRS{idProduct}=="2150", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0660", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="2485", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0660", ENV{ID_MM_DEVICE_IGNORE}="1"
SUBSYSTEM=="usb", ATTRS{idProduct}=="f63b", ATTRS{idVendor}=="03e7", GROUP="users", MODE="0660", ENV{ID_MM_DEVICE_IGNORE}="1"

User pi belongs to users group, and the same error appears also when executing everything as root.

Hardware is Raspberry Pi 3 Model B Rev 1.2, and OS is Raspbian GNU/Linux 10 (buster). The PSU is more than powerful enough, with 4.5A.

I know there are a lot of similar posts, I read many, but none of them has helped me to resolve the problem. So, I would appreciate any help or hint how to proceed.

0 Kudos

Accepted Solutions
samimk
Beginner
67 Views
Hello Peh_Intel,

Thank you very much, your instructions have helped me to fully resolve the problem. Now everything works as expected.

Regards,

samimk

View solution in original post

4 Replies
Maria_R_Intel
Moderator
117 Views

Hello samimk,


Thank you for posting on the Intel* Community.


To better assist you, we will move this thread to the proper sub-forum. Please expect a response soon.


Best regards,

Maria R.

Intel Customer Support Technician


Peh_Intel
Moderator
74 Views

Hi Samimk,

Greetings to you.

 

I notice that you’re using Intel® Movidius™ Neural Compute Stick (NCS) which is not supported by the OpenVINO 2021.2. NCS is supported up to OpenVINO™ toolkit 2020.3 LTS release only.

 

You may refer to the following link for the NCS support notification :

https://docs.openvinotoolkit.org/2020.4/openvino_docs_install_guides_installing_openvino_raspbian.ht...

 

I would recommend you install OpenVINO 2020.3 LTS to be used with NCS or use an Intel® Neural Compute Stick 2 (NCS2) towork with OpenVINO 2021.2.

 

Once you’ve installed the OpenVINO 2020.3 LTS, you need to download the face-detection-adas-0001 model in IR format (2019_R3 version), which is the compatible version with OpenVINO 2020.3 LTS.

I provide the link below.

https://download.01.org/opencv/2019/open_model_zoo/R3/20190905_163000_models_bin/face-detection-adas...

 

You may refer the below link for installation:

https://docs.openvinotoolkit.org/2020.3/_docs_install_guides_installing_openvino_raspbian.html

 

Hope to hear good news from you.

 

Cheers,

Yu Chern


samimk
Beginner
68 Views
Hello Peh_Intel,

Thank you very much, your instructions have helped me to fully resolve the problem. Now everything works as expected.

Regards,

samimk

View solution in original post

Peh_Intel
Moderator
56 Views

Hi Samimk,

Glad to hear that. This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question. 


Regards,

Yu Chern