openvinotoolkit / open_model_zoo

Pre-trained Deep Learning models and demos (high quality and extremely fast)
https://docs.openvino.ai/latest/model_zoo.html
Apache License 2.0
4.1k stars 1.37k forks source link

[ ERROR ] Device with "CPU" name is not registered in the InferenceEngine #469

Closed Harishrelysys closed 5 years ago

Harishrelysys commented 5 years ago

Hi all, I am trying to use Intel NCS stick2 on my armv7 custom board.I am able to compile openvino dldt. When I try to run Crossroad camera demo I am getting below error

error:

InferenceEngine: API version ............ 2.0 Build .................. custom_2019_ba6e22b1b5ee4cbefcc30e8d9493cddb0bb3dfdf Description ....... API [ INFO ] Parsing input parameters [ INFO ] Reading input [ WARN:0] global /usr/src/debug/opencv/4.1.1-r0/git/modules/videoio/src/cap_gstreamer.cpp (933) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1 [ INFO ] Loading plugin MYRIAD [ INFO ] Loading plugin CPU [ ERROR ] Device with "CPU" name is not registered in the InferenceEngine

IRDonch commented 5 years ago

What arguments did you pass to the demo?

It looks like you've selected the CPU device for one of the networks. CPU inference is only supported on x86.

Harishrelysys commented 5 years ago

Hi IRDonch, I am using below command to run the crossroad demo

command:

./crossroad_camera_demo -i ~/OpenVino-Driver-Behaviour/data/video2.mp4 -m ~/model_zoo/person-vehicle-bike-detection-crossroad/person-vehicle-bike-detection-crossroad-0078.xml -m_pa ~/model_zoo/person-attributes-recognition-crossroad/person-attributes-recognition-crossroad-0200.xml -m_reid ~/model_zoo/person-reidentification-retail/person-reidentification-retail-0079.xml -d MYRIAD

IRDonch commented 5 years ago

As I thought, by not explicitly specifying a device for the PA and ReID models, you're telling the demo to run them on the CPU. You need to add -d_pa MYRIAD -d_reid MYRIAD.

Harishrelysys commented 5 years ago

Thank you it's working fine now