Giter VIP home page Giter VIP logo

fast-resnet's Introduction

Fast ResNet on CIFAR-10


Contents

  1. Highlights
  2. Requirements
  3. Usage
  4. Results

Highlights

The goal of this project is to create a slightly modified version of the fast ResNet model from David Page's amazing blog post How to Train Your ResNet 8: Bag of Tricks, where a modified ResNet is trained to reach 94% accuracy in 26 seconds on a V100 GPU. Our model trained for 23 minutes on a single A100 GPU for 50 epochs and reached a final accuracy of 95% on CIFAR-10.


Requirements

pip install -r requirements.txt

Usage

To replicate the reported results, clone this repo

cd your_directory [email protected]:jordandeklerk/Fast-ResNet.git

and run the main training script

python train.py 

Make sure to adjust the checkpoint directory in train.py to store checkpoint files.


Results

We test our approach on the CIFAR-10 dataset with the intention to extend our model to 4 other small low resolution datasets: Tiny-Imagenet, CIFAR100, CINIC10 and SVHN. All training took place on a single A100 GPU.

  • CIFAR10
    • fast_resnet_cifar10_input32 - 94.9 @ 32

Flop analysis:

total flops: 1515005952
total activations: 753674
number of parameter: 26269837
| module   | #parameters or shape   | #flops   |
|:---------|:-----------------------|:---------|
| model    | 26.27M                 | 1.515G   |
|  0       |  3.712K                |  3.801M  |
|  1       |  1.476M                |  0.605G  |
|  2.0     |  1.181M                |  0.302G  |
|  3       |  23.599M               |  0.604G  |
|  4       |  10.251K               |  10.24K  |

fast-resnet's People

Contributors

jordandeklerk 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.