Change opencv_face_detector related tests and samples from caffe to onnx #25463
Merged
asmorkalov merged 11 commits intoopencv:5.xfrom May 8, 2024
Merged
Change opencv_face_detector related tests and samples from caffe to onnx #25463asmorkalov merged 11 commits intoopencv:5.xfrom
asmorkalov merged 11 commits intoopencv:5.xfrom
Conversation
18 tasks
Member
Author
|
CI Failed because lack of the model |
asmorkalov
reviewed
Apr 22, 2024
asmorkalov
approved these changes
Apr 23, 2024
asmorkalov
requested changes
Apr 23, 2024
dkurt
reviewed
Apr 24, 2024
asmorkalov
reviewed
Apr 24, 2024
asmorkalov
reviewed
Apr 25, 2024
Member
Author
|
According to the Linux and Win64 OpenCL FP16 tests, the results are super different. But the default threshold is well for other platforms. BTW, the AssertionError:
Unmatched prediction: class 1 score 0.930325 box [-308.862396 x 4.926922 from (339.619507, 35.305611)]
Unmatched prediction: class 1 score 0.915783 box [-107.855331 x -213.738129 from (140.660110, 255.532501)]
Unmatched prediction: class 1 score 0.906349 box [-38.122566 x -87.518509 from (68.402832, 126.704086)]
Unmatched prediction: class 1 score 0.906005 box [-88.960144 x -7.952095 from (119.567444, 48.460594)]
Unmatched prediction: class 1 score 0.904940 box [-227.991058 x -189.537888 from (259.080353, 229.301697)]
Unmatched prediction: class 1 score 0.899944 box [-372.310822 x -44.273228 from (405.697357, 87.268158)]
Unmatched reference: class 1 score 0.930260 box [-308.869843 x 4.877964 from (339.624451, 35.324162)]
Unmatched reference: class 1 score 0.916015 box [-107.807007 x -213.788055 from (140.639618, 255.555450)]
Unmatched reference: class 1 score 0.906396 box [-38.099903 x -87.592232 from (68.393143, 126.740463)]
Unmatched reference: class 1 score 0.906021 box [-88.970688 x -7.996181 from (119.571388, 48.482178)]
Unmatched reference: class 1 score 0.904910 box [-228.003922 x -189.566910 from (259.092102, 229.307129)]
Unmatched reference: class 1 score 0.899698 box [-372.304382 x -44.319317 from (405.697784, 87.281578)] |
Contributor
|
OpenCL back-end is broken for now in 5.x because of int/int64 support. Hopefully will fix it soon. |
Contributor
|
@dkurt What do you think about the patch? May I merge it? |
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.
Part of #25314
This PR aims to change the tests related to opencv_face_detector from caffe framework to onnx. Tests in
test_int8_layer.cppandtest_caffe_importer.cppwill be removed in #25323Pull 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.