Giter VIP home page Giter VIP logo

pytorch-cifar10's Introduction

pytorch-cifar10

Personal practice on CIFAR10 with PyTorch
Inspired by pytorch-cifar by kuangliu.

Introduction

The CIFAR-10 dataset consists of 60000 32x32 colour images in 10 classes, with 6000 images per class. There are 50000 training images and 10000 test images.

The dataset is divided into five training batches and one test batch, each with 10000 images. The test batch contains exactly 1000 randomly-selected images from each class. The training batches contain the remaining images in random order, but some training batches may contain more images from one class than another. Between them, the training batches contain exactly 5000 images from each class.

Requirement

  • python3.6
  • numpy
  • pytorch 0.4.0
  • torchvision 0.2.0

Usage

python3 main.py

optional arguments:

--lr                default=1e-3    learning rate
--epoch             default=200     number of epochs tp train for
--trainBatchSize    default=100     training batch size
--testBatchSize     default=100     test batch size

Configs

200 epochs for each run-through,
500 batches for each training epoch,
100 batches for each validating epoch,
100 images for each training and validating batch

Learning Rate

1e-3 for [1,74] epochs
5e-4 for [75,149] epochs
2.5e-4 for [150,200) epochs

Result

Models Accuracy Comments
LeNet 67.52% - - - -
Alexnet 74.74% Result is far away from my expectation (5%+). Reasons might be inappropriate modification to fit dataset(32x32 images).
VGG11 87.48% - - - -
VGG13 90.17% - - - -
VGG16 TBD - - - -
VGG19 TBD - - - -
GoogleNet 92.57% - - - -
ResNet18 TBD - - - -
ResNet34 TBD - - - -
ResNet50 TBD - - - -
ResNet101 TBD - - - -
ResNet152 TBD - - - -
DenseNet121 TBD - - - -
DenseNet161 TBD - - - -
DenseNet169 TBD - - - -
DenseNet201 TBD - - - -

pytorch-cifar10's People

Contributors

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