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.
6294 Discussions

Openvino error:expected: 'pin.oid < (int)netInputLayer.shapes.size()

AyasaYasca
Beginner
923 Views

I tried to make a program about FaceMask-Detection.Before,my programme could run successfully with the caffe model.However,When I turn caffe to ir model,it has problems as follows.

question1.png

gdb debug:

2.png

i guess the problem is model'format.but i cant sovle it

pls help me.

0 Kudos
11 Replies
Wan_Intel
Moderator
907 Views

Hi AyasaYasca,

Thanks for reaching out to us.

Could you please share the following details with us for further investigation?

·      Which version of the OpenVINO™ toolkit are you using?

·      Hardware specifications

·      Are you using custom demo application or Open Model Zoo Demo?

·      Are you using custom model or Open Model Zoo Demo?

 

 

Regards,

Wan


0 Kudos
AyasaYasca
Beginner
836 Views

Hello wan:

Thank you for your prompt reply.

Run -environment:

rasberry3B+

The version of openvino:

l_openvino_toolkit_runtime_raspbian_p_2020.4.287.tgz

------------------------------------------------------------------

Both  caffe and ir  model are here.

If you want the source code later, I can provide it to you.

 

 

0 Kudos
Wan_Intel
Moderator
825 Views

Hi AyasaYasca,

I’ve checked your IR model with OpenVINO™ Benchmark Python tool as shown as follows:

facemask.png 

 

Did you create your application from scratch? You can share it here for further investigation.

 

 

Regards,

Wan

 

0 Kudos
AyasaYasca
Beginner
818 Views

Hello wan:

Here is my program.

Thanks for your help. ovo

 

0 Kudos
Wan_Intel
Moderator
796 Views

Hi AyasaYasca,

I noticed that you are using CPU plugin in your application (Line 52).

   this->net.setPreferableTarget(dnn::DNN_TARGET_CPU);

 

For your information, CPU plugin is not supported by OpenVINO™ toolkit for Raspbian Operating System. You must use Intel® Neural Compute Stick 2 with Raspberry Pi and use MYRIAD plugin instead of CPU plugin.

 

Please refer to Development and Target Platforms in Install OpenVINO™ toolkit for Raspbian OS and Supported Devices for more information.

 

 

Regards,

Wan


0 Kudos
AyasaYasca
Beginner
755 Views

Hi Wan,

Thank for your patient reply.

 

Although I obey your order to change the error code ,it still has problems:

 

firstly, I changed the parament ,it still has error

question3.png

secendly, I deleted the code shown above .But the else error occur

question4.png

 

I guess the reason as follows:

the first one is the incorrect version of the openvino

another is the false ir format

 

Because English is not my first language. My expression may confuse you ..... 

Looking forward to your reply.

 

 

0 Kudos
Wan_Intel
Moderator
743 Views

Hi AyasaYasca,

Do you use Intel® Neural Compute Stick 2 with Raspberry Pi when changing the plugin to MYRIAD plugin?

 

 

Regards,

Wan


0 Kudos
AyasaYasca
Beginner
738 Views
0 Kudos
AyasaYasca
Beginner
737 Views
0 Kudos
Wan_Intel
Moderator
726 Views

Hi AyasaYasca,

I noticed that the error you encountered:

 

“'inputShapeLimitation.size()' is 2 must be equal to 'blobShape.size()' is 4”

 

 was due to incompatible sizes used which related to the blob size. You may refer to here for more information.

 

I suggest that you use OpenVINO™ Runtime API to Implement Inference Pipeline to integrate OpenVINO™ with your application.

You may refer to the following inference engine samples:

·      Hello Classification C++ Sample

·      Image Classification Async C++ Sample

 

 

Regards,

Wan

 

0 Kudos
Wan_Intel
Moderator
642 Views

Hi AyasaYasca,

Thanks for your question.

This thread will no longer be monitored since we have provided information. 

If you need any additional information from Intel, please submit a new question.

 

 

Best regards,

Wan


0 Kudos
Reply