- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I'm trying to run multiple models in one application using MYRIAD device. However, when I have already one engine, I can not create new one. I got RuntimeError: Can not init USB device: NC_ERROR
The error is at: plugin.load(network=net, num_requests=self.number_req)
I then try with the GPU and don't see the error.
Anyone know where the problem come from and how to fix it ?
Thank you in advance,
[More info]
- I use Intel® Movidius™ VPU which is attached to an UP board.
- I'm coding in Python. I tried to run the sample security_barrier demo with MYRIAD (because it also load multiple models) and got no error. The code is written in C++ so I don't know if we have problem with the Python API ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think I find the error. It is because I use different object for MYRIAD plugin.
I works ok as below:
exec_net = plugin.load(network=net)
exec_net2 = plugin.load(network=net2)
If we try to create an exec_net with different plugin then we get the error:
exec_net = plugin2.load(network=net2)
RuntimeError: Can not init USB device: NC_ERROR
I will try to check if it runs ok
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think I find the error. It is because I use different object for MYRIAD plugin.
I works ok as below:
exec_net = plugin.load(network=net)
exec_net2 = plugin.load(network=net2)
If we try to create an exec_net with different plugin then we get the error:
exec_net = plugin2.load(network=net2)
RuntimeError: Can not init USB device: NC_ERROR
I will try to check if it runs ok
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Truong, Dien Hoa,
Glad you figured it out and thanks for posting your findings here.
Thanks for using OpenVino !
Shubha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was facing a similar issue and I was able to solve it thanks to Dien Hoa Truong's reply.
However, I'm using the 2020.2 release, and the IEPlugin class is now deprecated. Which is the correct way to handle multiple models on a single Myriad device with the latest release?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there any sample code using opencv (I mean, using cv2.dnn.readnet function) to load two networks on the same NCS2?
Moreover, I have the same question as "Torin, Alberto".
![](/skins/images/7B0AB6865064EAE32B30EC9A4E94B48A/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page