You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Thanks for the reply @alalek !
Just to clarify, I would need to create an Mish function example in the samples/ directory, right? Something like: samples/python/mish.py?
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).
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".
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!
Activity
dkurt commentedon Oct 13, 2019
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 commentedon Oct 15, 2019
@dkurt @LukeAI I would like to help with this one
dkurt commentedon Oct 15, 2019
@suab321321, thanks! Feel free to open a PR
grassknoted commentedon Oct 22, 2019
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?
alalek commentedon Oct 22, 2019
Usage questions should go to Users OpenCV Q/A forum: http://answers.opencv.org
Custom layers are part of User code. Check "samples".
grassknoted commentedon Oct 22, 2019
Thanks for the reply @alalek !
Just to clarify, I would need to create an Mish function example in the
samples/directory, right? Something like:samples/python/mish.py?alalek commentedon Oct 22, 2019
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".
dkurt commentedon Oct 22, 2019
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.
grassknoted commentedon Oct 22, 2019
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!