-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Threshold layer to binarize features #422
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
Conversation
@sguada care to rebase on dev and include docstring in the manner of other layers in neuron_layers.hpp? |
Can this be implemented as an operation for the EltwiseLayer? |
Threshold layer only takes one blob, EltwiseLayer perform operations That functionality could be added after this PR is merged. Sergio 2014-05-23 19:13 GMT-07:00 kloudkl [email protected]:
|
It seems reasonable to me to add unary elementwise operations to the @jeffdonahue @sguada what do you think? I could branch off this PR, rebase, [1] http://www.simonlucey.com/soft-thresholding/ On Fri, May 23, 2014 at 7:18 PM, Sergio Guadarrama <[email protected]
|
I think it makes total sense to have unary elementwise operations, so go ahead pull my PR and adapt it to EltwiseLayer. |
Almost all the neuron layers can be refactored into very simple operations. The implementations of the non-unary operations are too complex to be placed in the switch cases. |
Agreed, neuron layers could be transformed into unary eltement wise Sergio 2014-05-27 1:44 GMT-07:00 kloudkl [email protected]:
|
For coherence and modularity it might make sense to have
Threshold could be folded into Eltwise as already discussed or kept Sounds like proto v2 is brewing... On Tue, May 27, 2014 at 8:06 AM, Sergio Guadarrama <[email protected]
|
@sguada I'm stalling on this 'til after NIPS. If you want to rebase and merge now go for it, or else I'll revisit this after the deadline and hack whatever decision we come to. |
Thanks, @shelhamer I'm going to rebase and merge it now, we can refactor it later if we decide so. |
…embers Make net preprocessing options belong to instantiated net and not class
Conflicts: src/caffe/proto/caffe.proto Conflicts: src/caffe/proto/caffe.proto Conflicts: src/caffe/proto/caffe.proto
Threshold layer to binarize features Added GPU code and tested
Threshold layer to binarize features Added GPU code and tested
It just binarize the inputs according to a predefined
threshold
the default isthreshold = 0
what means any number greater than 0 would output 1, otherwise would output 0.Currently there is only a CPU version, and there is not backward available.