openvino: [Bug]openvino2022 compile_tool failed. Failed to allocate graph: MYRIAD device is not opened.

System information (version)
  • OpenVINO=> 2022.1.0-7019-cdb9bec7210-releases/2022/1
  • Operating System / Platform => ubunt18.04
  • Compiler => ❔
  • Problem classification => MYRAID compile tool
Detailed description

When I use the compile_tool for conversion, I meet an error. [setupvars.sh] OpenVINO environment initialized /home/zyb/2661 OpenVINO Runtime version … 2022.1.0 Build … 2022.1.0-7019-cdb9bec7210-releases/2022/1 Network inputs: image : u8 / [N,C,H,W] Network outputs: detection_out/sink_port_0 : f16 / […] Failed to allocate graph: MYRIAD device is not opened.

Steps to reproduce
  1. Download openvino model. omz_downloader --name face-detection-0200 -o ./omz/
  2. Source openvino env. source setupvars.sh
  3. Invoke compile_tool for converting face-detection model. ./compile_tool -m ./omz/intel/face-detection-0200/FP32/face-detection-0200.xml -d MYRIAD -ip U8
Issue submission checklist
  • I report the issue, it’s not a question
  • I checked the problem with documentation, FAQ, open issues, Stack Overflow, etc and have not found solution
  • There is reproducer code and related data files: images, videos, models, etc.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

Hi all!

This can be worked around by using the following config option: MYRIAD_ENABLE_MX_BOOT NO

As soon as there is a proper fix, I will let you know.

Thanks @DariaMityagina for the workaround, looking forward to the proper fix.

@alexk-ede @szabi-luxonis @kamegbor @changewOw @Luxonis-Vlad Can you try the workaround provided by @DariaMityagina ? It worked for me using the following steps.

  1. Created myriad.conf file with the following content: MYRIAD_ENABLE_MX_BOOT NO
  2. Ran compile_tool using the following command:
> compile_tool.exe -m intel\face-detection-0200\FP16\face-detection-0200.xml -d MYRIAD -c myriad.conf

OpenVINO Runtime version ......... 2022.1.0
Build ........... 2022.1.0-7019-cdb9bec7210-releases/2022/1
Network inputs:
    image : f16 / [N,C,H,W]
Network outputs:
    detection_out/sink_port_0 : f16 / [...]
Done. LoadNetwork time elapsed: 707 ms

@changewOw @Luxonis-Vlad Thank you for reporting, I am able to reproduce the issue on 2022.1 release. The compile tool should not require the Neural Compute Stick 2 to be connected. I confirmed the compile tool works as expected in 2021.4.2 release and I reported this issue to the development team.

2022.1: image

2021.4.2: image

Regards, Jesus

Ref. 86400

@szabi-luxonis Not yet, I will link the pull request once we have a fix.