frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Can't load more than two models

Hi Tom!

I'm using ncsdkv2 2.08.01 on Ubuntu 16.04 (virtalbox).

I found that it's impossible to use more than two models within one stick in the latest release.

The simplest way to reproduce it is to modify the birds example by adding an additional graph loading (line 449-):

#Load tiny yolo graph from disk and allocate graph via API
with open(tiny_yolo_graph_file, mode='rb') as ty_file:
    ty_graph_from_disk = ty_file.read()
ty_graph = mvnc.Graph("Tiny Yolo Graph")
ty_fifo_in, ty_fifo_out = ty_graph.allocate_with_fifos(nc_device, ty_graph_from_disk)

with open(tiny_yolo_graph_file, mode='rb') as ty_file:
    ty_1_graph_from_disk = ty_file.read()
ty_1_graph = mvnc.Graph("Tiny Yolo Graph")
ty_1_fifo_in, ty_1_fifo_out = ty_1_graph.allocate_with_fifos(nc_device, ty_1_graph_from_disk)

#Load googlenet graph from disk and allocate graph via API
with open(googlenet_graph_file, mode='rb') as gn_file:
    gn_graph_from_disk = gn_file.read()
gn_graph = mvnc.Graph("GoogleNet Graph")
gn_fifo_in, gn_fifo_out = gn_graph.allocate_with_fifos(nc_device, gn_graph_from_disk)

And when the third graph is being allocated the following error occurs:

E: [         0] XLinkOpenStream:1035    Max streamId reached deaddead!
Traceback (most recent call last):
  File "birds.py", line 551, in <module>
    sys.exit(main())
  File "birds.py", line 465, in main
    gn_fifo_in, gn_fifo_out = gn_graph.allocate_with_fifos(nc_device, gn_graph_from_disk)
  File "/usr/local/lib/python3.5/dist-packages/mvnc/mvncapi.py", line 613, in allocate_with_fifos
    raise Exception(Status(status))
Exception: Status.ERROR

Comments

This discussion has been closed.