Added int support for OpenVINO dnn backend#25458
Merged
asmorkalov merged 6 commits intoopencv:5.xfrom May 15, 2024
Merged
Conversation
alexlyulkov
commented
Apr 25, 2024
dkurt
reviewed
Apr 25, 2024
dkurt
reviewed
Apr 26, 2024
dkurt
reviewed
Apr 26, 2024
dkurt
reviewed
Apr 26, 2024
Contributor
|
Contributor
|
Other failures are related to CI. I'll fix it and return back today. |
dkurt
reviewed
Apr 26, 2024
dkurt
reviewed
Apr 26, 2024
|
|
||
| TEST_P(Test_TFLite, EfficientDet_int8) { | ||
| if (backend == DNN_BACKEND_INFERENCE_ENGINE_NGRAPH) | ||
| applyTestTag(CV_TEST_TAG_DNN_SKIP_IE_NGRAPH); // TODO: fix this test for OpenVINO |
Contributor
Author
There was a problem hiding this comment.
This test doesn't work in both 4.x and 5.x branches. Probably because I use the newest OpenVINO version
Member
There was a problem hiding this comment.
Test definitely worked on 2023 release of OpenVINO. I will check 2024 version. I think ok to skip on this PR.
Contributor
|
Backport: #25524 |
Contributor
|
@dkurt could you take a look again? |
asmorkalov
approved these changes
May 15, 2024
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Modified dnn OpenVINO integration to support type inference and int operations.
Added OpenVINO support to Cast, CumSum, Expand, Gather, GatherElements, Scatter, ScatterND, Tile layers.
I tried to add Reduce layer, but looks like OpenVINO uses float values inside Reduce operation so it can't pass our int tests.
OpenVINO uses int32 precision for int64 operations, so I've modified input values for int64 tests when backend is OpenVINO.
OpenVINO has a strange behavior with custom layers and int64 values. After model compilation OpenVINO may change types, so the model can have different output type. That's why these tests were disabled:
Also these tests were temporary disabled, they didn't work on both 4.x and 5.x branches:
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.