Git Product home page Git Product logo

Comments (3)

richzhang avatar richzhang commented on June 9, 2024

Hi, I think you're referring to this section: https://github.com/adobe/antialiased-cnns/blob/master/antialiased_cnns/resnet.py#L147-L148, which makes it look like there's blurpool(stride2)->conv(stride1).

Your understanding is correct. It should be conv first. There is actually a conv before it, which was changed from stride 2 to stride 1: https://github.com/adobe/antialiased-cnns/blob/master/antialiased_cnns/resnet.py#L142. So overall, it is conv(stride1) first.

from antialiased-cnns.

freshn avatar freshn commented on June 9, 2024

Thank you for your reply! I understand it is conv(stride1) first in the Bottleneck. What I am confused is the skip connections:

downsample = [BlurPool(filt_size=filter_size, stride=stride, channels=self.inplanes),] if(stride !=1) else []
downsample += [conv1x1(self.inplanes, planes * block.expansion, 1),
, where BlurPool is before conv(stride1).

from antialiased-cnns.

richzhang avatar richzhang commented on June 9, 2024

Got it, in this case, because there's no non-linearity, the 1x1 conv and NxN blur are interchangeable. It's cheaper to do the blur --> stride --> conv rather than conv --> blur --> stride

from antialiased-cnns.

Related Issues (20)

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.