Skip to content

dnn: merge tests from test_halide_layers to test_backends#24283

Merged
asmorkalov merged 5 commits intoopencv:4.xfrom
fengyuentau:halide_tests
Sep 27, 2023
Merged

dnn: merge tests from test_halide_layers to test_backends#24283
asmorkalov merged 5 commits intoopencv:4.xfrom
fengyuentau:halide_tests

Conversation

@fengyuentau
Copy link
Copy Markdown
Member

Context: #24231 (review)

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • 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
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@fengyuentau fengyuentau added category: dnn cleanup Code cleanup (e.g, drop legacy C-API, legacy unmaintained code) labels Sep 18, 2023
@fengyuentau fengyuentau added this to the 4.9.0 milestone Sep 18, 2023
dkurt
dkurt previously approved these changes Sep 20, 2023
@asmorkalov
Copy link
Copy Markdown
Contributor

Some test fixes from #24196 are missing in the refactored code.

@asmorkalov
Copy link
Copy Markdown
Contributor

FullyConnected.Accuracy test was modified. Batch option was removed.

@dkurt dkurt dismissed their stale review September 20, 2023 12:37

Changes are not equal

@dkurt
Copy link
Copy Markdown
Member

dkurt commented Sep 20, 2023

@asmorkalov, good catch!

@fengyuentau
Copy link
Copy Markdown
Member Author

Batch option was removed.

I dont see this change. Anything I missed?

testLayer(lp, input, backendId, targetId, false, l1, lInf);
}

INSTANTIATE_TEST_CASE_P(Layer_Test_Backends, FullyConnected, testing::Combine(
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fengyuentau, please copy from 4.x manually: https://github.com/opencv/opencv/blob/4.x/modules/dnn/test/test_halide_layers.cpp. There are still missed updates about batch:

/*batch*/ Values(1, 2, 4, 8, 16),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, let me take a look!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took a look on the recent changes on this file, and it looks like the FullyConnected.Accuracy is the only test case that got updated.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All tests are green now.

Copy link
Copy Markdown
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@asmorkalov asmorkalov merged commit 307324f into opencv:4.x Sep 27, 2023
@asmorkalov asmorkalov mentioned this pull request Sep 28, 2023
@fengyuentau fengyuentau deleted the halide_tests branch September 29, 2023 08:29
hanliutong pushed a commit to hanliutong/opencv that referenced this pull request Oct 7, 2023
dnn: merge tests from test_halide_layers to test_backends opencv#24283

Context: opencv#24231 (review)

### 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
@opencv-alalek opencv-alalek removed their request for review December 26, 2023 20:46
thewoz pushed a commit to thewoz/opencv that referenced this pull request Jan 4, 2024
dnn: merge tests from test_halide_layers to test_backends opencv#24283

Context: opencv#24231 (review)

### 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
thewoz pushed a commit to thewoz/opencv that referenced this pull request May 29, 2024
dnn: merge tests from test_halide_layers to test_backends opencv#24283

Context: opencv#24231 (review)

### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: dnn cleanup Code cleanup (e.g, drop legacy C-API, legacy unmaintained code) test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants