Giter Club home page Giter Club logo

resattnet's Introduction

ResCon - Team Lynx

Residual Attention Network for Image Classification

Project Status: Inactive โ€“ The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows.

RESCON

Interactions between the Feature and Attention Masks of the Residual Attetntion Network [Image Referenced from the Paper]

Basic Model

We have used the PyTorch-Lightning Framework to implement a Residual Attention Network which can be used for Image Classification. A Residual Attention Network is nothing but a, "Convolutional Neural Network using Attention Mechanism which can implement State-of-art feed forward network architecture", as mentioned in the abstract of the paper.

You can run the notebook for testing our code.

For training the model, you have to run train_pl.py

Observations

Dataset Used Architecture implemented (Attention Type) Optimiser Used Image size Training Loss Test Loss
CIFAR-100 Attention-92 SGD 32 1.26 1.58
CIFAR-10 Attention-92 SGD 32 0.51 0.53
CIFAR-100 Attention-56 SGD 224 1.42 1.80
CIFAR-10 Attention-56 SGD 224 0.61 0.65
CIFAR-100 Attention-92 SGD 224 2.95 2.90
CIFAR-10 Attention-92 SGD 224 1.12 1.01

Some of the models' saved checkpoints can be downloaded from the drive

Further Improvements

We were able to implement only a few Res-Net architectures and that too only on 2 datasets because of the computional power and time required to run the model on our machines. Areas we are looking to improve on and work in the future

  • Implementing Attention-56 Architecture
  • Implementing Attention-92 Architecture
  • Implementing Attention-128, Attention-156 Architecture
  • Implementing the Paper using other Deep Learning Frameworks like Tensorflow

Paper implemented

Residual Attention Network for Image Classification By Fei Wang, Mengqing Jiang, Chen Qian, Shuo Yang, Chen Li, Honggang Zhang, Xiaogang Wang, Xiaoou Tang

References

ResidualAttentionNetwork-pytorch (GitHub)
Residual Attention Network (GitHub)

Citations

@inproceedings{wang2017residual,
  title={Residual attention network for image classification},
  author={Wang, Fei and Jiang, Mengqing and Qian, Chen and Yang, Shuo and Li, Cheng and Zhang, Honggang and Wang, Xiaogang and Tang, Xiaoou},
  booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition},
  pages={3156--3164},
  year={2017}
}

Contributors


Harshit Aggarwal


Kunal Mundada


Pranav B Kashyap

resattnet's People

Contributors

alkun25 avatar harshitaggarwal01 avatar pranav1007 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.