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!

mvNCCheck error

I tryed to run mvNCCheck on my model (mvNCCheck tf_sigtype.pb -on=activation_4/Softmax) but i got this error:

...
USB: Myriad Execution Finished
Output is in Channel Minor format
USB: Myriad Connection Closing.
E: [ 0] dispatcherEventReceive:247 dispatcherEventReceive() Read failed -2

E: [ 0] eventReader:268 Failed to receive event, the device may have reset

E: [ 0] checkGraphMonitorResponse:922 XLink error
W: [ 0] ncFifoDestroy:2545 myriad NACK

Traceback (most recent call last):
File "/usr/local/bin/mvNCCheck", line 239, in
quit_code = check_net(args.network, args.image, args.inputnode, args.outputnode, args.nshaves, args.inputsize, args.weights, args)
File "/usr/local/bin/mvNCCheck", line 213, in check_net
timings, myriad_output = run_myriad(graph_file, args)
File "/usr/local/bin/ncsdk/Controllers/MiscIO.py", line 334, in run_myriad
fifoOut.destroy()
File "/usr/local/lib/python3.5/dist-packages/mvnc/mvncapi.py", line 298, in destroy
raise Exception(Status(status))
Exception: Status.ERROR

I'm new to this and i tryed to find some solution/explanations on internet and on this forum, but with no result.
Can someone tell me what i'm doing wrong or what can i do to try to understand what is the problem?

If it can be useful this should be the list on my layers and it seems that up to max_pooling2d_2/MaxPool it's all fine, but then with flatten_1(Shape, strided_slice ecc) something goes wrong (IndexError: list index out of range)

[u'conv2d_1_input',
u'conv2d_1/kernel',
u'conv2d_1/kernel/read',
u'conv2d_1/bias',
u'conv2d_1/bias/read',
u'conv2d_1/convolution',
u'conv2d_1/BiasAdd',
u'activation_1/Relu',
u'max_pooling2d_1/MaxPool',
u'conv2d_2/kernel',
u'conv2d_2/kernel/read',
u'conv2d_2/bias',
u'conv2d_2/bias/read',
u'conv2d_2/convolution',
u'conv2d_2/BiasAdd',
u'activation_2/Relu',
u'max_pooling2d_2/MaxPool',
u'flatten_1/Shape',
u'flatten_1/strided_slice/stack',
u'flatten_1/strided_slice/stack_1',
u'flatten_1/strided_slice/stack_2',
u'flatten_1/strided_slice',
u'flatten_1/Const',
u'flatten_1/Prod',
u'flatten_1/stack/0',
u'flatten_1/stack',
u'flatten_1/Reshape',
u'dense_1/kernel',
u'dense_1/kernel/read',
u'dense_1/bias',
u'dense_1/bias/read',
u'dense_1/MatMul',
u'dense_1/BiasAdd',
u'activation_3/Relu',
u'dense_2/kernel',
u'dense_2/kernel/read',
u'dense_2/bias',
u'dense_2/bias/read',
u'dense_2/MatMul',
u'dense_2/BiasAdd',
u'activation_4/Softmax']

I also report this message:

/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)

I really hope someone can help me, thanks in advance.

Comments

  • 3 Comments sorted by Votes Date Added
  • Hi @s.fratus005,

    Can you provide more details about your setup and sytem please? Are you using the NCS1 or NCS2? Are you compiling a custom model? Which version of the NCSDK are you using?

    Best Regards,
    Sahira

  • I'm using ubuntu 16.04, NCS1and NCSDK version 2. The model is a custom model done with keras and later converted in tensorflow.

  • Hi @s.fratus005

    There can be issues when using a custom model trained in Keras and then converted to Tensorflow. Can you provide your Keras model and I can try to convert to Tensorflow and then compile to see if i'm getting the same error.

    Best Regards,
    Sahira

Sign In or Register to comment.