Giter Site home page Giter Site logo

mohamedac29 / s2-fpn Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 5.0 4.6 MB

Scale-ware Strip Attention Guided Feature Pyramid Network for Real-time Semantic Segmentation

License: MIT License

Python 100.00%
pyhton pytorch deep-learning semantic-segmentation real-time-semantic-segmentation cityscapes camvid neural-network strip-attention scale-aware-attention

s2-fpn's People

Contributors

llfzllfz avatar mohamedac29 avatar

Stargazers

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

Watchers

 avatar  avatar

s2-fpn's Issues

Fail downloading ResNet34M pre-trained weights on CamVid

Hi, thanks for your sharing. i am interested in this work. However, i find i cant download the weights CamVid | ResNet34M | trainval | 74.76% | 55.5 | ckpt with this link .

Could you add another link to download ResNet34M pre-trained weights on CamVid?

Thank you a lot!

About Equation 6 in paper 3.2

In paper,Equation 6 is Fscale = A ⊙F2 + A⊙F2, but with the text description, I think it should be Fscale = A⊙F1 + A⊙F2.

About Equation 7 in paper 3.2

In paper, Equation 7 is FSSAM = αFscale + (α-1)F, but in Fig. 4, it shows α and (1-α). And in your code, it's (1 - self.gamma). So I think the Equation 7 should be FSSAM = αFscale + (1-α)F.

the description of SSAM is inconsistent with the code

theoretical code:
att = torch.softmax(torch.mul(mxpool, avgpool), 1)
fusion = attt * avgpool + attt * mxpool

actual code :
att = torch.softmax(torch.mul(mxpool, avgpool), 1)
attt1 = att[:, 0, :, :].unsqueeze(1)
attt2 = att[:, 1, :, :].unsqueeze(1)
fusion = attt1 * avgpool + attt2 * mxpool

why?

SpatialAttention class

In this class, I find mxpool = F.max_pool2d(x, [h, 1]), and after this, maxpool will be (B, C, 1, W), but in paper, it's (B, C, H, 1). I have miss about it. Please explain, thanks.

SpatialAttention class

In the SpatialAttention class, both maxpooling and avgpooling functions use F.avg_pool2d, which is inconsistent with the paper, please explain.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.