dnn: fix inconsistent input dtype for nary eltwise layers#24386
dnn: fix inconsistent input dtype for nary eltwise layers#24386asmorkalov merged 9 commits intoopencv:4.xfrom
Conversation
|
@opencv-alalek, the label "test" means what here? The new test was added that tests the case |
|
@dkurt Looks like a lot problems occur after the latest commit. |
There are 2 labels: "test" (PR includes appropriate test) / "pr: needs test" (test is required for new functionality / bugfix) |
|
@fengyuentau, there is one failed test |
|
There are more in the "Accuracy: dnn" category: |
|
The reason is the same - "Mixed input data types". So can you please determine what actually data types are passed to Concat? |
Update: Runtime type convertion does not work. I did some type checks in opencv/modules/dnn/src/layers/const_layer.cpp Lines 81 to 83 in 590f150 tried to print the type of Another update: Trying a type conversion in const layer in runtime. |
Merge with opencv/opencv#24386 Also noted that random seed is added in this pr, so previous data is regenerated to keep consistency.
dnn: fix inconsistent input dtype for nary eltwise layers opencv#24386 Resolves opencv#24385 Merge with opencv/opencv_extra#1107 Relates opencv#24092 (comment) ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [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
dnn: fix inconsistent input dtype for nary eltwise layers opencv#24386 Resolves opencv#24385 Merge with opencv/opencv_extra#1107 Relates opencv#24092 (comment) ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [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
dnn: fix inconsistent input dtype for nary eltwise layers opencv#24386 Resolves opencv#24385 Merge with opencv/opencv_extra#1107 Relates opencv#24092 (comment) ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [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


Resolves #24385
Merge with opencv/opencv_extra#1107
Relates #24092 (comment)
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.