Giter Site home page Giter Site logo

horovod-resnet-cifar10's Introduction

ResNet: Classifying CIFAR-10 images with Horovod

Note: this project is extension of tensorflow project github.com/chao-ji/tf-resnet-cifar10

  • A lightweight TensorFlow implementation of ResNet model for classifying CIFAR-10 images.

  • Reproduces the results presented in the paper.

  • Shows the full schematic diagram of a 20-layer ResNet annotated with feature map sizes.

Usage

Clone the Repo
git clone [email protected]:hyonzin/horovod-resnet-cifar10.git
Download and untar CIFAR-10 dataset
wget https://www.cs.toronto.edu/~kriz/cifar-10-binary.tar.gz
tar -xvzf cifar-10-binary.tar.gz
Train the ResNet Classifier

To train the ResNet model using default settings, simply run

python run_trainer.py \
  --data_path=cifar-10-batches-bin \
  --num_layers=110

To change the number of layers in the ResNet (for example, to 110), specify --num_layers=110. To degenerate the ResNet model to a Plain network, specify --shortcut_connections=False. To see a full list of arguments, run

python run_trainer.py --help
Evaluate a Trained ResNet Classifier

To evaluate the trained model on the test set (10,000 images), run

  python run_evaluator.py \
    --path=cifar-10-batches-bin \
    --ckpt_path=/PATH/TO/CKPT \
    --num_layers=110

Note that you need to specify the path to the checkpoint file containing trained weights via --ckpt_path.

References:

  1. ResNet V1, Deep Residual Learning for Image Recognition, He et al.
  2. ResNet V2, Identity Mappings in Deep Residual Networks, He et al.

horovod-resnet-cifar10's People

Contributors

chao-ji avatar hyonzin 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.