Code Monkey home page Code Monkey logo

arl's People

Contributors

vipermdl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arl's Issues

I believe other type of softmax should be used

Hey there,

I'm not completely sure Softmax2d does exactly what you what (apply the softmax spatially).
I've implemented this paper by doing using that function at the start, but later I found out that that was a mistake.

I believe that we should be doing this:

  1. Add a softmaxLayer to every bottleneck such that every bottleneck has a property
self.softmaxLayer = nn.Softmax(2) #it will apply softmax along the third dimension (we use 2 because we start indexing from 0)

and later override the forward function by doing this:

 out = out + (identity 
                     * self.softmaxLayer(out.view(*out.size()[:2], -1)).view_as(out) 
                     * self.alpha) + (identity)

Tell me what you think

Question: ARL module: BasicBlock——channel?

Hello,
I felt confued about your BasicBlock module:

class BasicBlock(nn.Module):
    expansion = 1
    def __init__(self, inplanes, planes, stride=1, downsample=None, alpha =0.001):
        ...
    def forward(self, x):
        ...
        out = out + residual + self.alpha * attention * residual

if in_channels != out_channels, the last line can running?
residual: inplanes, out: planes

Looking forward to your reply. Thanks.

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.