-
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
[E-103104] - Port G-API demos to API2.0 #3887
base: master
Are you sure you want to change the base?
[E-103104] - Port G-API demos to API2.0 #3887
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
It may be worth merging changes in parts. We can start with those that do not break anything, namely 3 demos: Part 1: #3889 - |
.pluginConfig(config.getLegacyConfig()); | ||
.cfgPluginConfig(config.getLegacyConfig()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TolyaTalamanov should probably align these APIs between ie::Params<>
and ov::Params<>
This change seems to fix |
57fc6a0
to
f9636ab
Compare
cd6ba9a
to
0044eda
Compare
f285227
to
6677969
Compare
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