GithubHelp home page GithubHelp logo

sasa-pytorch's Introduction

This is NOT an official implementation. Please let me know whether this implementation contains any misreadings of the original paper.

Prerequisites

  • Python +3.6
  • pytorch +1.1.0
  • scipy
  • Pillow
  • torchvision

Benchmark (WIP)

Trained with ImageNet. (WIP: CIFAR-10, CIFAR-100)

Backbone network and parameters are based on the official torchvision ResNet and trainer example.

Trained up to 90 epochs / batch 64 on a single NVIDIA 1080Ti GPU, with SGD optimizer with a learning rate of 0.1 which is linearly warmed up for 10 epochs followed by cosine decay. (according to the SASA paper)

sasa-pytorch's People

Contributors

hyjhoo avatar merhs avatar

Stargazers

JierunChen avatar Li Ming avatar 王浩然 avatar Hitoshi avatar Eduard Mukans avatar Johnny avatar AIRSGroup avatar An-zhi WANG avatar Tarun K avatar SJH avatar Zitong Yu avatar Kumar Abhishek avatar Devi Prasad Tripathy avatar Yin Cao avatar IronMan avatar Ranjodh Singh avatar Xingjian Du avatar Xa9aX ツ avatar  avatar Researcher.YuanYuhui avatar  avatar Jordi Armengol Estapé avatar  avatar Pankesh Bamotra avatar Yi Liu avatar Nikan Doosti avatar rex lau avatar Slice avatar Lawrence avatar Jingbo Lin avatar Yiming Lin avatar  avatar Chenyang Yu avatar 爱可可-爱生活 avatar Ben Athiwaratkun avatar  avatar Xuejian Rong avatar  avatar luuvish avatar Maurits Bleeker avatar Kaito avatar  avatar ManKit Pong avatar Sébastien Doria avatar

Watchers

James Cloos avatar  avatar Xuejian Rong avatar  avatar  avatar Sean Cha avatar Xa9aX ツ avatar IronMan avatar Sébastien Doria avatar paper2code - bot avatar

sasa-pytorch's Issues

How should we implement Attention stem?

currently Full-Attention network uses 2x more GPU & time.

The resulting p^m_ab are shared across the 4 attention heads for the mixture stem layer.

I cannot understand this line. ResNet50 uses Conv2d(3, 64, (7, 7)) as stem layer, so it cannot use 4 seperable convolution. (3 != 0 (mod 4))

Also, what exact value is the mixture count m?

Sum is over both channels and groups

Hi, according to the paper last sentence on pg 3 I think the sum in row 82 should only be over fc/g rather than all of fc. That should give size b,g,fh,fw,kh,kw in row 84.

As it currently stands, I think you effectively use groups=1 and the spatial kernel is the same for all channels. When increasing the number of groups, I think the kernel should vary between some channels (the groups).

vx = (win_q.unsqueeze(4).unsqueeze(4) * win_k).sum(dim=1) # b, fh, fw, kh, kw

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.