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.
6577 토론

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

AyasaYasca
초급자
2,651 조회수

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 포인트
11 응답
Wan_Intel
중재자
2,635 조회수

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 포인트
AyasaYasca
초급자
2,564 조회수

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 포인트
Wan_Intel
중재자
2,553 조회수

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 포인트
AyasaYasca
초급자
2,546 조회수

Hello wan:

Here is my program.

Thanks for your help. ovo

 

0 포인트
Wan_Intel
중재자
2,524 조회수

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 포인트
AyasaYasca
초급자
2,483 조회수

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 포인트
Wan_Intel
중재자
2,471 조회수

Hi AyasaYasca,

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

 

 

Regards,

Wan


0 포인트
AyasaYasca
초급자
2,466 조회수
0 포인트
AyasaYasca
초급자
2,465 조회수
0 포인트
Wan_Intel
중재자
2,454 조회수

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 포인트
Wan_Intel
중재자
2,370 조회수

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 포인트
응답