Skip to content

Fixed ReduceMean layer behaviour#25120

Merged
asmorkalov merged 3 commits intoopencv:4.xfrom
LaurentBerger:I25103
Mar 4, 2024
Merged

Fixed ReduceMean layer behaviour#25120
asmorkalov merged 3 commits intoopencv:4.xfrom
LaurentBerger:I25103

Conversation

@LaurentBerger
Copy link
Copy Markdown
Contributor

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

https://github.com/microsoft/onnxruntime/blob/a93c31e3c9971063d8dfe45a627a80cbdcf99ed9/onnxruntime/core/providers/cpu/reduction/reduction_ops.cc#L433-L443

@asmorkalov asmorkalov changed the title solved bug Fixed ReduceMean layer behaviour Feb 29, 2024
@asmorkalov asmorkalov added bug category: dnn (onnx) ONNX suport issues in DNN module category: dnn and removed category: dnn (onnx) ONNX suport issues in DNN module labels Feb 29, 2024
@asmorkalov asmorkalov added this to the 4.10.0 milestone Feb 29, 2024
@fengyuentau fengyuentau linked an issue Feb 29, 2024 that may be closed by this pull request
4 tasks
@asmorkalov asmorkalov added the pr: needs test New functionality requires minimal tests set label Feb 29, 2024
@asmorkalov
Copy link
Copy Markdown
Contributor

@LaurentBerger Thanks a lot for the patch! Could you add a test with the case in the ticket. You can use this test as an example:

TEST(Layer_Test_Convolution, relu_fusion)

@asmorkalov asmorkalov removed the pr: needs test New functionality requires minimal tests set label Feb 29, 2024
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.

👍 Thanks a lot for the contribution.

@asmorkalov asmorkalov merged commit 5fe3933 into opencv:4.x Mar 4, 2024
@asmorkalov asmorkalov mentioned this pull request Mar 6, 2024
@asmorkalov asmorkalov mentioned this pull request Apr 1, 2024
klatism pushed a commit to klatism/opencv that referenced this pull request May 17, 2024
Fixed ReduceMean layer behaviour opencv#25120

### 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
- [] 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

https://github.com/microsoft/onnxruntime/blob/a93c31e3c9971063d8dfe45a627a80cbdcf99ed9/onnxruntime/core/providers/cpu/reduction/reduction_ops.cc#L433-L443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Results with ONNX and opencv are different for reduceMean

4 participants