frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Alert: Beginning Tuesday, June 25th, we will be freezing this site and migrating the content and forums to our new home at https://forums.intel.com/s/topic/0TO0P000000PqZDWA0/intel-neural-compute-sticks. Check it out now!

Error with Intel® Neural Compute Stick, USB port stops work

Dears,

We are developing a solution of analytic video with Intel® Neural Compute Stick on an upboard 2 box with ubuntu 16.04 LTS, but eventually we have a USB port blocked with this error:

cv2.error: OpenCV(4.0.1-openvino) /home/jenkins/workspace/OpenCV/OpenVINO/build/opencv/modules/dnn/src/op_inf_engine.cpp:553: error: (-215:Assertion failed) Failed to initialize Inference Engine backend: Can not init USB device: NC_DEVICE_NOT_FOUND in function 'initPlugin'`

After that, movidius is unavailable and we need to do a physical reboot.

We try to restart usb port, but unsuccessfully. Somebody had same problem?

Thank you in advanced.
Alonso.

Comments

  • 3 Comments sorted by Votes Date Added
  • Hi @abgenis

    Do you see this error when you run other examples as well? Are you using a USB powered hub or plugging directly in?
    You might need to reset the NCS device within OpenVINO. There is a parameter KEY_VPU_FORCE_RESET that resets any stalled devices on plugin initialization, it must be used with SetConfig method. Here are some links to help guide in the right direction:

    Myriad Plugin, Supported Configuration Parameters
    https://docs.openvinotoolkit.org/2018_R5/_docs_IE_DG_supported_plugins_MYRIAD.html
    VPU Plugins, VPU Common Configuration Parameters
    https://docs.openvinotoolkit.org/2018_R5/_docs_IE_DG_supported_plugins_VPU.html

    Please let me know if this is helpful.

    Best Regards,
    Sahira

  • Hi @Sahira_at_Intel

    I'm working together with @abgenis.

    About your questions, it follows:

    Do you see this error when you run other examples as well?
    Yes, if an example runs in a stressful manner for a certain period, this problem occurs.

    Are you using a USB powered hub or plugging directly in?
    No, we connected the NCS directly to the USB 3.0 port of an UpBoard 2

    On redefining the device with KEY_VPU_FORCE_RESET we did this via python, follow code snippet in python3.5

    from openvino.inference_engine import IENetwork, IEPlugin
    plugin = IEPlugin (device = "MIRYAD")
    plugin.set_config ({"VPU_FORCE_RESET": "NO"})

    NOTE: In python the KEY_VPU_FORCE_RESET parametyro does not exist, then we use VPU_FORCE_RESET

    We do this at the beginning of the code, but we do not succeed. The rest of the instructions are made through opencv 4.0-1-openvino. Follow the passage

    import cv2
    netMovidius = cv2.dnn.readNet ('my_model.bin', 'my_model.xml')
    netMovidius.setPreferableTarget (cv2.dnn.DNN_TARGET_MYRIAD)
    frame = cv2.imread ('test_images / image1.jpg'
    blob = cv2.dnn.blobFromImage (frame, size = (300, 300))
    netMovidius.setInput (blob)
    out = netMovidius.forward ()

    After starting the inference in the image, we get the error that @abgenis reported above

  • Hi @RodolfoPlanetfone, @abgenis

    Which version of OpenVINO are you using? I'd like to try to reproduce this issue, can you tell me which example you were running and for how long when you ran into the error.

    Sincerely,
    Sahira

Sign In or Register to comment.