Search code examples
raspbianopenvinomovidius

Run multiple networks on the same Intel Neural Compute Stick 2 (NCS2/MYRIAD)?


I want to load and run multiple networks on the same NCS2: a one-class object detection network (like a person detector), and a network for some recognition on that detection (like gesture recognition). I tried to load the networks on one NCS2 through two different threads. But when loading the second network, the program exits without any warning or error; the networks are separately working fine (one at a time).

I am using Python on Raspberry pi 4/Raspbian Buster, and the networks are in IR (xml + bin) format.

  1. Is it possible to load multiple networks on the same NCS2 at all?
  2. If yes, what do I miss? Do I have to do some configuration or so?

Solution

  • Yes. It is possible. No specific configuration actions required.

    There are examples of such functionality in a repo open-model-zoo. For example, this one. Action recognition demo based on two networks. The demo is implemented using Python.

    Any chance to share source code of your app? It would be a lot easier to understand what may go wrong.