Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fengyuentau
Copy link
Member

@fengyuentau fengyuentau commented Mar 26, 2024

Merge with opencv/opencv_extra#1158

Todo:

  • Fix Attention pattern recognition.
  • Handle other backends.

Benchmark:

"VIT_B_32 OCV/CPU", M1, results in milliseconds.

Model 4.x This PR
VIT_B_32 OCV/CPU 87.66 83.83

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
force_builders=Linux OpenCL, Win64 OpenCL

@fengyuentau fengyuentau added category: dnn category: dnn (onnx) ONNX suport issues in DNN module labels Mar 26, 2024
@fengyuentau fengyuentau added this to the 4.10.0 milestone Mar 26, 2024
@fengyuentau fengyuentau requested a review from dkurt March 28, 2024 11:44
@fengyuentau fengyuentau marked this pull request as ready for review March 28, 2024 11:44
@asmorkalov asmorkalov merged commit b758897 into opencv:4.x Mar 29, 2024
@fengyuentau fengyuentau deleted the matmul_bias branch March 30, 2024 06:50
@asmorkalov asmorkalov mentioned this pull request Apr 1, 2024
klatism pushed a commit to klatism/opencv that referenced this pull request May 17, 2024
Merge with opencv/opencv_extra#1158

Todo:

- [x] Fix Attention pattern recognition.
- [x] Handle other backends.

Benchmark:

"VIT_B_32 OCV/CPU", M1, results in milliseconds.

| Model | 4.x | This PR |
| - | - | - |
| VIT_B_32 OCV/CPU | 87.66 | **83.83** |


### 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 (onnx) ONNX suport issues in DNN module category: dnn

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants