-
-
Notifications
You must be signed in to change notification settings - Fork 55.7k
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
[Feature Request opencv-dnn] Swish Activation, Mish Activation #15693
Comments
It's possible for now to enable this network with custom layers mechanism. Please read a tutorial https://docs.opencv.org/master/dc/db1/tutorial_dnn_custom_layers.html. |
@suab321321, thanks! Feel free to open a PR |
Hi @dkurt seeing no progress, I was wondering if I could take this issue up? I had a look at the link:
I'm still unsure of where to add the Mish activation function. Could you just help me get started, please? |
Usage questions should go to Users OpenCV Q/A forum: http://answers.opencv.org |
Thanks for the reply @alalek ! |
Well, if you want to add this implementation OpenCV then check this patch: #10889 + add tests on data from original framework (1-2 layers, to ensure that it is parsed properly). Not sure if this is really "good first issue". |
As far as I know Swish is an activation layer so you need to implement it here: https://github.com/opencv/opencv/blob/master/modules/dnn/src/layers/elementwise_layers.cpp. Also, you need to register a new name at https://github.com/opencv/opencv/blob/master/modules/dnn/src/init.cpp and write some tests depends on origin framework. |
Looking at the required changes, I'm not very sure I could take this on. I will instead look for more beginner focussed issues. Thank you @dkurt and @alalek for the help! |
Google's famous Efficientnet uses the Swish Activation function
It is currently not possible to use efficientnet in opencv due to the absence of swish.
The newer Mish activation function reportedly outperforms swish and would be great to have as an option.
The text was updated successfully, but these errors were encountered: