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.

Error while make inference

Corvid__Zabeth
803 Views

My application raised an exception:

Size of dims(4) and format(NC) are inconsistent.

Why it raised?

0 Kudos
1 Reply
Shubha_R_Intel
Employee
803 Views

Dear Corvid, Zabeth,

Hard to say but NC means "Batch Size, Number of Channels".

OpenVIno Inference Engine deep learning layer format is a 4-dimensional shape in the format [N,C,H,W]  Where N = Batch Size, C = Num of Channels, H = Height and Width = Width. Tensorflow is different, it goes with [N,H,W,C]. In the case of Tensorflow you'd pass in input shape exactly like [N,H,W,C] but Inference Engine will perform a conversion to NCHW.

This error:

Size of dims(4) and format(NC) are inconsistent.

Is telling me though that somewhere Inference Engine is seeing a dim size of 4 but yet only getting NC (a dim size of 2). Without seeing your code and your model it's difficult to diagnose.

Let me know more and I'll be glad to help. 

Thanks,

Shubha

 

 

0 Kudos
Reply