Update OpenVINO init of new GEMM layer#24309
Conversation
|
Locally failed tests: |
|
@asmorkalov, thanks, I will fix it. |
|
Remaining failed test: https://pullrequest.opencv.org/buildbot/builders/precommit_custom_linux/builds/100366 perf: |
| if (have_bias && const_C) { | ||
| auto bias_node = std::make_shared<ngraph::op::Constant>(ngraph::element::f32, | ||
| ngraph::Shape{(size_t)blobs.back().size[1]}, blobs.back().data); | ||
| Mat bias = blobs.back(); |
There was a problem hiding this comment.
For the GoogleNet test, I suspect a manual broadcast is needed for bias. I saw somewhere before that it seems openvino nodes cannot perform auto-broadcast.
There was a problem hiding this comment.
Problem was in OpenVINO iterpretation of the batch dimension. Adding reshape from [2, 1, 1024] back to [2, 1024] solved it.
|
As for the perf tests, maybe you need to change initialization to pass the check: opencv/modules/dnn/src/net_openvino.cpp Lines 272 to 282 in b51a78d |
|
I guess it does not make a lot of senses to run both |
|
@fengyuentau, we can keep for compatibility. There are small differences in nGraph construction related to the reshapes and others before MatMul. |
|
ok, makes sense then. |
|
the last issue on my side: |
|
OpenVINO 2022.1.1 with old host (no AVX2). Not sure if the failure is related. |
|
@asmorkalov, that's right, model is from Torch frameworks and this PR is only related to ONNX models. |
fengyuentau
left a comment
There was a problem hiding this comment.
👍 I guess failed tests in gapi does not relate to these changes, right?
|
@fengyuentau , yes, the problem is old: #24049 |
|
@dkurt Could you take a look on the BuildBot test failure: |
Reference outputs of clip head is fixed via #24295. You can rebase opencv_extra and see whether it fixes the problem. |
|
DNN crash is being fixed in #24315 |
Update OpenVINO init of new GEMM layer opencv#24309 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request CI validation: - [x] 2022.1.0: https://pullrequest.opencv.org/buildbot/builders/precommit_custom_linux/builds/100368 - [ ] 2021.4.2: https://pullrequest.opencv.org/buildbot/builders/precommit_custom_linux/builds/100373 Checklist: - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake
Update OpenVINO init of new GEMM layer opencv#24309 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request CI validation: - [x] 2022.1.0: https://pullrequest.opencv.org/buildbot/builders/precommit_custom_linux/builds/100368 - [ ] 2021.4.2: https://pullrequest.opencv.org/buildbot/builders/precommit_custom_linux/builds/100373 Checklist: - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake
Update OpenVINO init of new GEMM layer opencv#24309 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request CI validation: - [x] 2022.1.0: https://pullrequest.opencv.org/buildbot/builders/precommit_custom_linux/builds/100368 - [ ] 2021.4.2: https://pullrequest.opencv.org/buildbot/builders/precommit_custom_linux/builds/100373 Checklist: - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
CI validation:
Checklist:
Patch to opencv_extra has the same branch name.