Git Product home page Git Product logo

Comments (3)

KaimingHe avatar KaimingHe commented on July 27, 2024

This is realized in:
https://github.com/KaimingHe/resnet-1k-layers/blob/master/resnet-pre-act.lua#L65-L66
to which the first residual unit belongs.

Alternatively, you may refer to the 'first' option in fb-torch-resnet's pre-resnet implementation:
https://github.com/facebook/fb.resnet.torch/blob/master/models/preresnet.lua#L147-L150
which makes it explicit.

from resnet-1k-layers.

junyuseu avatar junyuseu commented on July 27, 2024

Oh, I know that. Thanks very much!

from resnet-1k-layers.

nicpopovic avatar nicpopovic commented on July 27, 2024

Hi,

I’m not sure this is the best place to post this, since this thread is more than 3 years old, but I am struggling to understand the exact implementation used in the paper. Clarification would be greatly appreciated!

As far as I can tell, the two implementations you have linked above are not identical. My understanding of what happens in the 2 implementations is as follows:

“For the first Residual Unit (that follows a stand-alone convolutional layer, conv1), we adopt the first activation right after conv1 and before splitting into two paths;”

Did I understand this correctly? I am not familiar with the syntax used in this version of torch, so that might have caused me to miss something.

Secondly, in the facebook implementation, this initial activation is implemented only for ImageNet, not for CIFAR (https://github.com/facebook/fb.resnet.torch/blob/a96f50e9041b3531f90ebe768f6ddfc49c26f56d/models/preresnet.lua#L166). The activation after the last residual block is, however, used in both cases (https://github.com/facebook/fb.resnet.torch/blob/a96f50e9041b3531f90ebe768f6ddfc49c26f56d/models/preresnet.lua#L172).

Thanks in advance,
Nicholas

from resnet-1k-layers.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.