question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with releasing Neural Compute Stick 2 (MYRIAD) resources programmatically while using async_pipeline.h

See original GitHub issue

Environment: OpenVINO 2021.2.185 Device: Neural Compute Stick 2 I’m trying to create an application in C++ using the async pipeline-based code followed in object_detection_demo.exe. I’m facing an issue where the NCS2 resource is not being released correctly which results in Can not init Myriad device: NC_ERROR when I try to use NCS2 in the same process but for a different model configuration. I’m following the same steps as used in the object_detection_demo.exe. I’ve also tried setting the MYRIAD_ENABLE_FORCE_RESET to “YES”, but that doesn’t work either. Ways to reproduce the error:

  1. Run object_detection_demo.exe with NCS2 in quick succession.
  2. Run segmentation_demo_async.exe with NCS2 in quick succession.

Both of these examples use the async_pipeline based code. Here is a reference to the Intel Community forum post which contains a detailed explanation for this error and a potential bug in the pipeline/requests pool codebase. Attaching logs of object_detection_demo.exe when run in quick succession. logs.txt Ref for the issue: @vladimir-dudnik.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
saifvazircommented, May 19, 2021

Hey @vladimir-dudnik, sorry for not being responsive earlier, I tried cherry-picking the commit onto 2021.2 and 2021.3 releases and then build the object detection demo. The build goes through successfully but the demo fails. I was not aware about the incompatible API changes. I will try building openvino from the develop branch and check if the demo works then or not.

1reaction
vladimir-dudnikcommented, May 4, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenVINO: Issue with releasing NCS2 resources ...
Hi, I'm trying to use the Neural Compute Stick 2 to perform inference using a CPP application on Windows 10. The application gets...
Read more >
Getting Started with the Intel Neural Compute Stick 2 and ...
Three years ago now a startup called Movidius launched what was the world's first deep learning processor on a USB stick. Based around...
Read more >
AI On Raspberry Pi With The Intel Neural Compute Stick
Unambiguously named the 'Neural Compute Stick 2' (NCS2), it was reasonably priced and promised a 6-8x performance increase over the last model, ...
Read more >
A Closer Look at Intel Movidius Neural Compute Stick
While Myriad is a System-on-Chip (SoC) board, Intel has extended the same technology to Movidius Neural Compute Stick (NCS).
Read more >
Plugging in Intel's Neural Compute Stick 2
Technology Editor Bill Wong gives us his appraisal of Intel's latest Neural Compute Stick 2 after taking a hands-on look.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found