Add ReLU Activation to DarkNet Importer#18017
Merged
opencv-pushbot merged 1 commit intoopencv:3.4from Aug 4, 2020
Merged
Conversation
dkurt
reviewed
Aug 2, 2020
| } | ||
| else if (activation == "relu") | ||
| { | ||
| setParams.setActivation("relu"); |
Member
There was a problem hiding this comment.
Please replace to
if (activation != "linear")
setParams.setActivation(activation);because there is already "Unsupported activation" check inside setActivation`.
08385ff to
92cdfd8
Compare
Member
|
Please take a loo at failed tests: https://pullrequest.opencv.org/buildbot/builders/precommit_linux64/builds/27147 |
4a2d85b to
173d5f7
Compare
add relu option add relu as activation option in darknet simplify the setParams if-else ladder add relu as activation option in darknet correct activation_param type format format add relu as activation option in darknet spacing spacing add relu as activation option in darknet
173d5f7 to
8457e47
Compare
Merged
4 tasks
Contributor
|
it exists a bug, in darknet_io.cpp line 987, miss 'relu' in 'if'. |
Member
|
@zhuqiang00099 , can you please open a pull request? if (activation != "linear")
++cv_layers_counter; // For ReLU, Swish, Mish, Sigmoid |
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.
Addressing the issue described in #17778 to enable using both leaky ReLU and ReLU. This PR should be merged in conjunction with opencv/opencv_extra#784, which adds the test data for the new activation function.
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.