Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6392 Discussions

Problem with movidius stick (1 version) with SDK 2.0 - Exception: Status.INVALID_DATA_LENGTH

idata
Employee
684 Views

Hi all

 

I trained a custom network with Keras. Then, with a script, I converted my keras model to tensorflow and with mvnCCompiler, I got the related graph file.

 

When i run the inference, with _ graph.allocate_with_fifos_ and graph.queue_inference_with_fifo_elem specifying the input tensor, I get the following error

 

Exception: Status.INVALID_DATA_LENGTH

 

E: [ 0] ncFifoWriteElem:2608 input tensor length (59040) doesnt match expected value (19680)

 

I made many attempts without arriving at a solution. Can you help me ?

 

thanks a lot

0 Kudos
4 Replies
idata
Employee
416 Views

Hi @gtr91

 

What were your input dimensions? Are you using NCSDK v1 or v2?

 

Best Regards,

 

Sahira
0 Kudos
idata
Employee
417 Views

Hi @Sahira_at_Intel

 

thank you for the response.

 

Input dimensions are (60,41,2) and i'm using NCS v1 with NCSDK v2.
0 Kudos
idata
Employee
417 Views

Hi @gtr91

 

Can you please attach your Keras model, the converted .pb file, and the script you used to convert it. Also, what command + parameters did you use when compiling using mvNCCompile?

 

Best Regards,

 

Sahira
0 Kudos
idata
Employee
417 Views

Hi @Sahira_at_Intel

 

I sent you the files you requested with private message.

 

Thank you so much

0 Kudos
Reply