DNN: optimize dnn vulkan backend#23349
Merged
vpisarev merged 1 commit intoopencv:4.xfrom May 18, 2023
Merged
Conversation
e3b7d04 to
8b7cc81
Compare
e7c6627 to
49f7a12
Compare
49f7a12 to
8ea197c
Compare
Contributor
|
@vpisarev Friendly reminder. |
9c339e3 to
f982551
Compare
Member
Author
|
The CI is greed now. zihaomu#1 |
vpisarev
approved these changes
May 12, 2023
zihaomu
commented
May 15, 2023
Comment on lines
-92
to
+95
| kernel_size.assign(1, kernel_size[0]); | ||
| strides.assign(1, strides[0]); | ||
| pads_begin.assign(1, pads_begin[0]); | ||
| pads_end.assign(1, pads_end[0]); | ||
| kernel_size.resize(1, kernel_size[0]); | ||
| strides.resize(1, strides[0]); | ||
| pads_begin.resize(1, pads_begin[0]); | ||
| pads_end.resize(1, pads_end[0]); |
Member
Author
There was a problem hiding this comment.
This modification fixes the error reported by Visual Studio 2020.
7635ec6 to
c05dc51
Compare
Contributor
|
Please rebase to resolve conflicts: |
c4f6c54 to
a12cd9a
Compare
a12cd9a to
5e2594e
Compare
Merged
6 tasks
thewoz
pushed a commit
to thewoz/opencv
that referenced
this pull request
Jan 4, 2024
thewoz
pushed a commit
to thewoz/opencv
that referenced
this pull request
May 29, 2024
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.
Optimize DNN Vulkan backend
merge with: opencv/ci-gha-workflow#95.
My purposes for this PR:
1.0to1.2to support thefp16andint8data format.Vulkan CI result can be found at this PR
We only optimize the integrated GPU, and the discrete GPU like Nvidia GPU will run relatively slowly.
There are two CIs:
TODO List:
Performance Test
NOTE: Currently PR is only optimized for integrated graphics, it will run very slowly on discrete graphics like Nvidia GPU.
Test on Apple M1 chip.
Patch performance:
Since the old vulkan kernel is almost without optimize, it works very slowly.
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.