Giter Club home page Giter Club logo

resnet-on-cifar10's Introduction

ResNets experiments on cifar10 with caffe

Citation

@article{He2015,
    author = {Kaiming He and Xiangyu Zhang and Shaoqing Ren and Jian Sun},
    title = {Deep Residual Learning for Image Recognition},
    journal = {arXiv preprint arXiv:1512.03385},
    year = {2015}
	}

Introduction

This repository reimplements resnet experiments on cifar10 with caffe according to the paper "Deep Residual Learning for Image Recognition" (http://arxiv.org/abs/1512.03385). The data augmentation means 4 pixels are padded on each side for every images during training. You can make datasets prepared by using the scripts.

Structure

The network structure is here(we only list the network of 20 depth):
ResNet_20
PlainNet_20

Usage

First, you should make sure that your caffe is correctly installed. You can follow this blog's instructions if you use windows.(https://zhuanlan.zhihu.com/p/22129880)

for training

caffe train -solver=solver.prototxt -gpu 0

for testing

caffe test -model=res20_cifar_train_test.prototxt -weights=ResNet_20.caffemodel -iterations=100 -gpu 0

Result

Result with data augmentation:

model Repeated Reference
20 lyaers 91.94% 91.25%
32 layers 92.70% 92.49%
44 layers 93.01% 92.83%
56 layers 93.19% 93.03%
110 layers 93.56% 93.39%

notice:'Repeated' means reimplementation results and 'Reference' means result in the paper.We got even better results than the original paper

Compare result(without data augmentation):

model PlainNet ResNet
20 lyaers 90.10% 91.74%
32 layers 86.96% 92.23%
44 layers 84.45% 92.67%
56 layers 85.26% 93.09%
110 layers X 93.27%

Blog address


zhihu

resnet-on-cifar10's People

Watchers

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