[E-103104] - Port G-API demos to API2.0 #3887
Draft
+18
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket:
103104
Description:
G-API Background Subtraction Demo, Classification Benchmark C++ G-API Demo, G-API Gaze Estimation Demo and other - fail on NPU with the following error:
dynamic shape issues
Conclusion: We need to port the G-API demos to API2.0 to make them work.
Affected demos:
Passing:
OK: Works with a single image and with a video input.
BUT: But still has issues in case folder with images is provided (in CI) - WIP
Failed to copy data from cv::Mat to ov::Tensor. Data type or number of elements mismatch. ov::Tensor: u8 [1,490,1183,3] and cv::Mat: 8UC3 1180x490
It seems to fail if the input folder contains images of different sizes. It works fine with the first image from the folder and does not work with the second (if it is a different size).
The issue seems to come from
govbackend
, I will open a PR shortly.Failing still:
person-detection-asl-0001/FP16/person-detection-asl-0001.xml
is indeed dynamic. Will disable this one until we support dynamism. G-API demo also fails on CPU after transition to API2.0 for some reason (Segmentation fault (core dumped)
). Benchmark_app, on the other hand, works fine with this model. Python demo works on CPU as well.AR Daria: create ticket for G-API demo and investigate.
[ ERROR ] OpenCV(4.8.0-dev) ..\modules\gapi\src\backends\ov\govbackend.cpp:799: error: (-215:Assertion failed) cv::util::holds_alternativecv::GMatDesc(input_meta) in function 'cv::gimpl::ov::PrePostProcWrapper::cfgPreProcessing' - WIP
Related PRs:
Part 1: #3889 - Merged
Part 2: #3891 - In review