-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to run background_subtraction_demo_gapi with Media Files Available for Demos #3928
Comments
@Wovchena I guess, this issue occurs due to mismatch between the expected input shape of the model and the actual input shape provided by the
plz let me know, if the above works or not |
The problem is in GAPI which is a part of OpenCV. @TolyaTalamanov and @DariaMityagina were working on fixing. Apparently they dropped this task. |
@Siddharth-Latthe-07 The problem occurs because of dynamic nature of the model. Could you try to fix model input to "some" static shape and re-run demo, please? |
@TolyaTalamanov , Here's my approach to address the above issue sent by you (I tried setting a static input shape for the model using OpenVINO's tools or APIs that allow input resizing.) :- Step 1: Set the Model Input Shape Statically
This sets the input to a fixed shape before inference. Step 2: Update the Demo Script After making these changes, re-run the |
@Siddharth-Latthe-07 You don't need to update the demo itself. Suggestion is to eliminate dynamism from the model by reshaping it to static shape |
@TolyaTalamanov, got it
By reshaping the model to a static input shape, you eliminate the dynamic nature of the model, which should resolve the input shape compatibility issue during inference. |
Hi team, background_subtraction_demo_gapi failed with person-bicycle-car-detection.mp4 from Media Files: https://storage.openvinotoolkit.org/data/test_data/videos.
How to download:
wget https://storage.openvinotoolkit.org/data/test_data/videos/person-bicycle-car-detection.mp4
[Environment]
OS: Ubuntu 22.04.2 LTS
Kernel: 5.15.0-86-generic
Openvino: 2023.3.0
OpenCV: 4.9.0
[Log]
$ ./background_subtraction_demo_gapi -m $HOME/workshop/kazuki/open_model_zoo/demos/background_subtraction_demo/cpp_gapi/intel/instance-segmentation-security-0002/FP32/instance-segmentation-security-0002.xml -i person-bicycle-car-detection.mp4 -at maskrcnn
[ INFO ] OpenVINO
[ INFO ] version: 2023.3.0
[ INFO ] build: 2023.3.0-13775-ceeafaf64f3
[ INFO ] The background matting model /home/yuzhang3/workshop/kazuki/open_model_zoo/demos/background_subtraction_demo/cpp_gapi/intel/instance-segmentation-security-0002/FP32/instance-segmentation-security-0002.xml is loaded to CPU device.
[ ERROR ] [ GENERAL_ERROR ] Exception from src/plugins/intel_cpu/src/infer_request.cpp:393:
Can't set the input tensor with name: image, because the model input (shape=[1,3,?,?]) and the tensor (shape=(1.432.768.3)) are incompatible
The text was updated successfully, but these errors were encountered: