Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6482 Discussions

Myriad works for C++ samples, but not Python

NPage1
Beginner
628 Views

As the title suggests, I have been successfully running the C++ based samples with my NCS2 for quite some time on OpenVino 2019R3.

However, the multi-camera Python sample caught my eye, and I wanted to try it out. It runs successfully when I use CPU as the device, but when I run it with MYRIAD, I get this error:

```

nicholas@neuralone:~$ cd ~/intel/openvino/deployment_tools/inference_engine/samples/python_samples/multi_camera_multi_person_tracking

nicholas@neuralone:~/intel/openvino/deployment_tools/inference_engine/samples/python_samples/multi_camera_multi_person_tracking$ python3 multi_camera_multi_person_tracking.py -i http://192.168.1.52:8081 http://192.168.1.52:8082 -m ./intel/person-detection-retail-0013/FP16/person-detection-retail-0013.xml --m_reid ./intel/person-reidentification-retail-0031/FP16/person-reidentification-retail-0031.xml --config config.py -d MYRIAD

INFO:root:Opening file http://192.168.1.52:8081

INFO:root:Opening file http://192.168.1.52:8082

INFO:root:Creating Inference Engine

INFO:root:Loading network files:

./intel/person-detection-retail-0013/FP16/person-detection-retail-0013.xml

./intel/person-detection-retail-0013/FP16/person-detection-retail-0013.bin

INFO:root:Preparing input blobs

INFO:root:Loading model to the plugin

INFO:root:Creating Inference Engine

INFO:root:Loading network files:

./intel/person-reidentification-retail-0031/FP16/person-reidentification-retail-0031.xml

./intel/person-reidentification-retail-0031/FP16/person-reidentification-retail-0031.bin

INFO:root:Preparing input blobs

INFO:root:Loading model to the plugin

Traceback (most recent call last):

  File "multi_camera_multi_person_tracking.py", line 148, in <module>

    main()

  File "multi_camera_multi_person_tracking.py", line 140, in main

    person_recognizer = VectorCNN(args.m_reid, args.device)

  File "/home/nicholas/intel/openvino_2019.3.334/deployment_tools/inference_engine/samples/python_samples/multi_camera_multi_person_tracking/utils/network_wrappers.py", line 75, in __init__

    self.net = load_ie_model(model_path, device, None, num_reqs=self.max_reqs)

  File "/home/nicholas/intel/openvino_2019.3.334/deployment_tools/inference_engine/samples/python_samples/multi_camera_multi_person_tracking/utils/ie_tools.py", line 96, in load_ie_model

    exec_net = ie.load_network(network=net, device_name=device, num_requests=num_reqs)

  File "ie_api.pyx", line 85, in openvino.inference_engine.ie_api.IECore.load_network

  File "ie_api.pyx", line 92, in openvino.inference_engine.ie_api.IECore.load_network

RuntimeError: Can not init Myriad device: NC_ERROR

nicholas@neuralone:~/intel/openvino/deployment_tools/inference_engine/samples/python_samples/multi_camera_multi_person_tracking$ 

```

However, if I immediately run a C++ sample, it works without any problems.

Any help would be greatly appreciated.

0 Kudos
1 Reply
David_C_Intel
Employee
628 Views

Hi Nicholas,

Thank you for reaching out.

Could you please tell us the following:

- Which OS version are you using?

- Are you using a virtual machine?

- Are you connecting the NCS directly to the host machine or using a powered USB hub?

Regards,

David

0 Kudos
Reply