openvinotoolkit / open_model_zoo

Pre-trained Deep Learning models and demos (high quality and extremely fast)
https://docs.openvino.ai/latest/model_zoo.html
Apache License 2.0
4.1k stars 1.37k forks source link

Failed to reshape Network #1575

Closed ClementLeBihan closed 3 years ago

ClementLeBihan commented 4 years ago

Hi guys,

I've compiled openvino by myself, downloaded open_model_zoo models using downloader script, and build demos using build_demos script.

Some demos are working perfectly on my Intel Neurel Compute Stick 2, but for some other demos, I have this error :

/root/omz_demos_build/intel64/Release/pedestrian_tracker_demo \
    -m_det /opt/intel/openvino/deployment_tools/open_model_zoo/tools/downloader/intel/person-detection-retail-0013/FP16/person-detection-retail-0013.xml \
    -m_reid /opt/intel/openvino/deployment_tools/open_model_zoo/tools/downloader/intel/person-reidentification-retail-0270/FP16/person-reidentification-retail-0270.xml \
    -d_det MYRIAD -d_reid MYRIAD \
    -i ~/video_test.mp4

InferenceEngine: 0x7f5b5c00e020
Loading device MYRIAD
    MYRIAD
    myriadPlugin version ......... 2.1
    Build ........... custom_master_83e96891ca287bede3d0d481d6e5b3facabed346

[ ERROR ] Failed to reshape Network: You have called setBatchSize + reshape for CNNNetwork object. Please, either: 
- [SUGGESTED] Regenerate IR with current version of Model Optimizer
- [WORKAROUND] Call only reshape method where proper batch is already set

These error also appear for interactive face detection demo.

Is there a solution for this issue ?

Thank you by advance, Clément

Wovchena commented 4 years ago

Hi, @ClementLeBihan. Can you check if it works on CPU for you?

ClementLeBihan commented 4 years ago

Hi @Wovchena,

Indeed, I forgot to say that it works good on CPU !

Clément

Wovchena commented 4 years ago

I've submitted a ticket to a myriad plugin team

Wovchena commented 4 years ago

A reply I got:

https://github.com/openvinotoolkit/openvino/pull/1918

vladimir-dudnik commented 3 years ago

@ClementLeBihan have you a chance to verify OpenVINO fix?

Wovchena commented 3 years ago

The issue seems to be inactive and https://github.com/openvinotoolkit/openvino/pull/1918 successor is merged. Closing.