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.
6404 Discussions

Movidius not found when attempting to load a graph

robert_osmosis
Beginner
399 Views

Hello, I am trying to run the following code:

 

from inference_engine import IENetwork, IEPlugin

def debug_movidius():

    plugin = IEPlugin(device='MYRIAD')
    net = IENetwork(model='cars.xml', weights='cars.bin')



    input_blob = next(iter(net.inputs))
    out_blob = next(iter(net.outputs))


    exec_net = plugin.load(network=net, num_requests=2, config={"VPU_LOG_LEVEL": "LOG_DEBUG"})

    print(input_blob)
    print(out_blob)
    print(exec_net)



if __name__ == '__main__':

    debug_movidius()

 

I am running the script from the inside of a docker container which does have access to the NCStick, I am running it in privileged mode and have tested with lsusb that it does have access to them.

 

However this is the error I am getting:

 

[setupvars.sh] OpenVINO environment initialized
Using TensorFlow backend.

D: [ncAPI] [    220158] ncDeviceCreate:328      ncDeviceCreate index 0

D: [ncAPI] [    220158] resetAll:246    Found stalled device 2.5-

D: [xLink] [    220158] XLinkConnect:971        XLinkConnect() device name 2.5- 

D: [xLink] [    220158] dispatcherStart:836     dispatcherStart() starting a new thread - schedulerId 0 

D: [xLink] [    220158] dispatcherAddEvent:661  receiving event USB_PING_REQ 0

D: [xLink] [    220158] addNextQueueElemToProc:411      D: [xLink] [    220158] eventSchedulerRun:538   eventSchedulerRun() schedulerId 0

received event USB_PING_REQ 0

I: [xLink] [    220158] eventSchedulerRun:569   Scheduler thread started
D: [xLink] [    220158] dispatcherLocalEventGetResponse:607     USB_PING_REQ

I: [xLink] [    220158] eventReader:239 eventReader started
D: [xLink] [    220158] dispatcherRequestServe:315      ------------------------UNserved USB_PING_REQ

D: [xLink] [    220158] dispatcherEventSend:885 USB_PING_REQ, size 0, streamId 0.

D: [xLink] [    220159] dispatcherEventReceive:301      Incoming event 0x7fe7abf8bee0: USB_RESET_RESP 11 0x46add70 prevEvent: USB_WRITE_REQ 0 (nil)

D: [xLink] [    220159] handleIncomingEvent:219 USB_RESET_RESP, size -1515870811, streamId -1515870811.

D: [xLink] [    220159] dispatcherAddEvent:661  receiving event USB_RESET_RESP 1

D: [xLink] [    220159] addNextQueueElemToProc:411      received event USB_RESET_RESP 1

D: [xLink] [    220159] eventReader:244 Reading USB_RESET_RESP (scheduler 0, fd 0x46add70, event id 11, event stream_id -1515870811, event size -1515870811)

I: [xLink] [    220159] eventReader:248 eventReader stopped
E: [xLink] [    220269] dispatcherEventSend:889 Write failed header -4 | event USB_PING_REQ

I: [xLink] [    220269] dispatcherReset:502     Resetting...
I: [xLink] [    220269] dispatcherReset:514     dropped event is USB_RESET_RESP, status 0

I: [xLink] [    220269] dispatcherReset:523     Pending event is USB_PING_REQ, size is 0, Mark it served

I: [xLink] [    220269] closeDeviceFdAndResetScheduler:474      Dispatcher Cleaning...
I: [xLink] [    220269] closeDeviceFdAndResetScheduler:487      Cleaning Successfully

I: [xLink] [    220269] eventSchedulerRun:623   Scheduler thread stopped
I: [ncAPI] [    220269] resetAll:268    Stalled devices found, Reseting...
D: [xLink] [    220269] getXLinkState:918       getXLinkState() link 0x7fe7ad1494a0 link->peerState 1

D: [xLink] [    220269] XLinkResetRemote:1404   sending reset remote event

W: [xLink] [    220269] XLinkResetAll:1431      Failed to reset
I: [ncAPI] [    220519] resetAll:293    ...
I: [ncAPI] [    220770] resetAll:293    ...
I: [ncAPI] [    221020] resetAll:293    ...
I: [ncAPI] [    221270] resetAll:293    ...
I: [ncAPI] [    221520] resetAll:293    ...
I: [ncAPI] [    221771] resetAll:293    ...
I: [ncAPI] [    222021] resetAll:293    ...
I: [ncAPI] [    222271] resetAll:293    ...
I: [ncAPI] [    222521] resetAll:293    ...
I: [ncAPI] [    222771] resetAll:293    ...
I: [ncAPI] [    223022] resetAll:293    ...
I: [ncAPI] [    223272] resetAll:293    ...
I: [ncAPI] [    223522] resetAll:293    ...
I: [ncAPI] [    223773] resetAll:293    ...
I: [ncAPI] [    224023] resetAll:293    ...
I: [ncAPI] [    224273] resetAll:293    ...
I: [ncAPI] [    224523] resetAll:293    ...
I: [ncAPI] [    224773] resetAll:293    ...
I: [ncAPI] [    225024] resetAll:293    ...
I: [ncAPI] [    225274] resetAll:293    ...
I: [ncAPI] [    225524] ncDeviceSetOption:2358  Set watchdog interval to: 1000
I: [ncAPI] [    225524] ncDeviceDestroy:1226    Destroying Device

D: [ncAPI] [    225524] ncDeviceCreate:328      ncDeviceCreate index 1

W: [ncAPI] [    227524] ncDeviceCreate:395      Failed to init device, rc: X_LINK_DEVICE_NOT_FOUND
Traceback (most recent call last):
  File "edge/main.py", line 53, in <module>
    debug_movidius()
  File "edge/main.py", line 21, in debug_movidius
    exec_net = plugin.load(network=net, num_requests=2, config={"VPU_LOG_LEVEL": "LOG_DEBUG"})
  File "ie_api.pyx", line 389, in openvino.inference_engine.ie_api.IEPlugin.load
  File "ie_api.pyx", line 400, in openvino.inference_engine.ie_api.IEPlugin.load
RuntimeError: Can not init USB device: NC_DEVICE_NOT_FOUND

 

0 Kudos
2 Replies
robert_osmosis
Beginner
399 Views

SOLVED:

I was installing python3.6 after installing the openvino libraries and for some weird reason it was causing openvino/python to stop recognizing the movidius sticks.

What I did to solve it was to install the openvino libraries AFTER installing python3.6

0 Kudos
Shubha_R_Intel
Employee
399 Views

Dear Rios, Robert,

It's weird that order of installation matters but I'm glad you fixed it. Thanks for reporting back and sharing your knowledge with the OpenVino community !

Shubha

 

0 Kudos
Reply