openvinotoolkit / openvino

OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference
https://docs.openvino.ai
Apache License 2.0
7.06k stars 2.22k forks source link

[Bug] MYRIAD Device Is Not Opened #12429

Closed howardginsburg closed 2 years ago

howardginsburg commented 2 years ago
System information (version)
Detailed description

I'm running the Up2 Vision AI X Dev Kit. When I try to run the benchmark_app using the MYRIAD configuration, I get the following error trace

[Step 7/11] Loading the model to the device I: [ncAPI] [ 427141] [benchmark_app] ncDeviceOpen:926 ncDeviceOpen() XLinkBootRemote is running for 3.1-ma2480...

W: [ncAPI] [ 427249] [benchmark_app] ncDeviceOpen:941 ncDeviceOpen() XLinkBootRemote returned error X_LINK_SUCCESS for 3.1-ma2480 E: [ncAPI] [ 442249] [benchmark_app] ncDeviceOpen:1013 Failed to find booted device after boot W: [ncAPI] [ 442249] [benchmark_app] ncDeviceOpen:1015 Device (3.1-ma2480) doesn't disappear after firmware loading I: [ncAPI] [ 442249] [benchmark_app] destroyDeviceHandle:1651 Destroying device handler I: [ncAPI] [ 442249] [benchmark_app] ncDeviceClose:1685 Handle already destroyed [ ERROR ] Failed to allocate graph: MYRIAD device is not opened.

Steps to reproduce
  1. Install openvino runtime using the install script.
  2. Run the followup scripts that enable GPU and NCS2.
  3. Install openvino-dev using the pip install directions.
  4. The myriad shows up when running lsusb: Bus 003 Device 002: ID 03e7:2485 Intel Movidius MyriadX

Note, if I install the 2021.4.2 LTS release which has an install script for openvino-dev and follow all the install instructions, the benchmark app works fine across CPU, GPU, and MYRIAD

Issue submission checklist
Iffa-Intel commented 2 years ago

@howardginsburg to use MYRIAD with OpenVINO installed using pip, you'll need to do some manual adjustment since certain plugin files are not within the pip install OpenVINO package.

Somewhat, you'll need to get two files (possibly from the env that you managed to run the MYRIAD):

  1. openvino_intel_myriad_plugin
  2. usb-ma2x8x

Place these two files into ../Lib/site-packages/openvino/libs

Iffa-Intel commented 2 years ago

Closing issue, feel free to re-open or start a new issue if additional assistance is needed

chengguizi commented 2 years ago

@Iffa-Meah May i know for the two files you mentioned, where could I get a copy of them? Yes im installing openvino-dev from pip currently, and only available device currently is CPU. Wants to get MYRIAD working

brmarkus commented 2 years ago

I just checked my local Docker container "openvino/ubuntu20_dev:2022.2.0" and can find the files inside, e.g.: ... /opt/intel/openvino_2022.2.0.7713/runtime/lib/intel64/libopenvino_intel_myriad_plugin.so ... /opt/intel/openvino_2022.2.0.7713/runtime/lib/intel64/pcie-ma2x8x.mvcmd /opt/intel/openvino_2022.2.0.7713/runtime/lib/intel64/usb-ma2x8x.mvcmd /opt/intel/openvino_2022.2.0.7713/runtime/3rdparty/hddl/lib/mvnc/usb-ma2x8x.mvcmd ...

For a locally installed OpenVINO v2021.4.2 I can find these: ... /opt/intel/openvino_2021.4.752/deployment_tools/inference_engine/lib/intel64/libmyriadPlugin.so ... /opt/intel/openvino_2021.4.752/deployment_tools/inference_engine/external/hddl/lib/mvnc/usb-ma2x8x.mvcmd /opt/intel/openvino_2021.4.752/deployment_tools/inference_engine/lib/intel64/usb-ma2x8x.mvcmd /opt/intel/openvino_2021.4.752/deployment_tools/inference_engine/lib/intel64/pcie-ma2x8x.mvcmd

jiapei100 commented 1 year ago

@brmarkus Where can I get the plugin support MYRIAD for both Movidius 1 and Movidius 2 ? for both

➜  ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:    22.04
Codename:   jammy

and

➜  ~ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 11 (bullseye)
Release:    11
Codename:   bullseye
brmarkus commented 1 year ago

The support for "Movidius 1" ("NCS") has been stopped quite some time ago, would need to look-up older release-notes, don't know it out of my head. Myriad-X ("Movidius 2") ("NCS2") is still supported - but not in open-source version of OpenVINO, and won't be installed via pip. You would need to install OpenVINO via online- or offline-installer.

Some people were able to just add some libraries and plugins to the open-source-version (or when installed via pip), as mentioned above (like copying them from another machine or from an OpenVINO Docker container).

chengguizi commented 1 year ago

@brmarkus

May I know where did you get the docker file? Does it come directly with those files?

I could see there are some docker files here https://docs.openvino.ai/latest/openvino_docs_install_guides_installing_openvino_docker_linux.html#getting-a-prebuilt-image-from-provided-sources

brmarkus commented 1 year ago

You can find all Dockerfiles of what and how OpenVINO provides publicly under "https://github.com/openvinotoolkit/docker_ci".

maotouma commented 12 months ago

We used a demo application downloaded from the OpenVINO website to connect with an NCS2 device. However, we encountered an error: 'ncDeviceOpen: 1013 - Fail to find a booted device after boot.' We are seeking an expert's advice on how to resolve this issue. Thank you!

err