-
-
Notifications
You must be signed in to change notification settings - Fork 55.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dnn(darknet-importer): add grouped convolutions, sigmoid, swish, scale_channels #16436
Conversation
Please add single layer tests for each of newly added layers. You may take a look at #16358 as a reference.
What about input image resolution? Have you used RGB or BGR input? |
3db94c1
to
7670e28
Compare
@dkurt For the convolution and activation tests, should I create a new cfg files for swish, logistic and grouped convolution OR add more layers to existing |
@YashasSamaga, I think the best way if to check existing tests and replace some of duplicated activation to new ones. |
opencv/modules/dnn/src/layers/scale_layer.cpp Lines 86 to 94 in 3efa783
opencv/modules/dnn/src/layers/scale_layer.cpp Lines 98 to 104 in 3efa783
This code ignores the batch dimension and tries to match Example:
I can tweak the Or I can add a new layer which behaves like Darknet's scale channels. |
@YashasSamaga, let's open a new issue for that observation. So for Scale layer there will be a new test with batch size 1 but for Swish and Logistic - let's try to include them to existing ones. |
I have used a different branch name in opencv_extra PR. How can the CI be informed about it? |
5a7ad57
to
886bf17
Compare
Need to adjust Inference Engine checks. |
Please, rebase with updated 3.4. PR #16738 fixed your tests. |
886bf17
to
c1eccc3
Compare
resolves #15987
Merge with extra: opencv/opencv_extra#711
This pull request changes
Prediction using OpenCV CPU backend:
Darknet Reference: