Giter VIP home page Giter VIP logo

cifar10-gluon's Introduction

MXNet/Gluon for CIFAR-10 Dataset

Introduction

This repository is about resnet164 and densenet architecture's gluon implement for cifar10 dataset in kaggle.

I just use mxnet/gluon to implement all of these models, and the single model is near rank1 in leader board, ensemble model is over rank1. All those ideas come from gluon community, welcome to join big family of gluon.

Requirements

  • MXNet(0.12)

    fast, flexible and portable deep learning architecture

  • tensorboardX

    for visualization loss and accuracy

Architectures and papers

Accuracy of single model

Before training, we will do standard data augumentation, pad 4 and random crop to 32 image size, do random mirror transform.

Resnet164

This model is defined in resnet.py, training file is train_resnet164.ipynb. The training strategy is same as the paper, total epochs are 200, batch size is 128, initial learing rate is 0.1, momentum is 0.9, learning rate decay at 90 epoch and 140 epoch.

After 200 epochs, training accuracy is almost 100%, kaggle score is 0.9526.

Densnet

This model is defined in densenet.py, training file is train_densenet.ipynb. The training strategy is similary as resnet, total epochs are 300, batch size is 128, initial learning rate is 0.1, momentum is 0.9, learning rate decay at 50% and 75% of total epochs.

After 300 epochs, training accuracy is almost 100%, kaggle score is 0.9536.

Ensemble

We can ensemble these two models, get the result of each model, then compute the final result by weighted each model's output. The weight is the accuracy of each single model. The ensemble result is in ensemble_submission.ipynb, the final result is 0.9616.

Future work

  • Use more models and data augumentation to do ensemble can get a better result.

  • There is a paper about mixup show that it can over 97% at cifar10 dataset, so if I have time, I want to try this strategy. As in paper, this strategy is like a way of data augumentation.

cifar10-gluon's People

Contributors

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