GithubHelp home page GithubHelp logo

jjdblast / all-conv-keras Goto Github PK

View Code? Open in Web Editor NEW

This project forked from getcrest/all-conv-keras

0.0 2.0 0.0 15 KB

All Convolutional Network: (https://arxiv.org/abs/1412.6806#) implementation in Keras

License: MIT License

Python 100.00%

all-conv-keras's Introduction

Implementation of the All Convolution model in keras

Source

'Striving for Simplicity: The All Convolutional Net' The original paper can be found here.

We have also tried explaning the important concept of the paper on our Medium Blog.

Requirements

  • keras with Tensorflow backend (keras version 1.0.4 or later)
  • h5py (if you want to save your model)
  • numpy
  • pandas (if you want to save the logs of your model)
  • cv2 (for image resizing)

External data

In this implementation we are using the Cifar10 dataset. Either you can import the dataset from keras.datasets

Or

You can Download the dataset from here.

Usage

If you want to run the model without using the pretrained weights then: Run python allconv.py

You can download the weights from here: weights.994-0.56.hdf5 And use the weights to retrain your model.

Results

The above model easily achieves more than 90% accuracy after the first 350 iterations. If you want to increase the accuracy then you can try much more heavy data augmentation at the cost of computation time.

Licensing

MIT License

Additional Notes

Use of Scheduler:

In the original paper learning rate of 'γ' and scheduler S = "e1 ,e2 , e3" were used in which γ is multiplied by a fixed multiplier of 0.1 after e1. e2 and e3 epochs respectively. (where e1 = 200, e2 = 250, e3 = 300) But in our implmentation we have went with a learning rate of 0.1, decay of 1e-6 and momentum of 0.9. This is done to make the model converge to a desirable accuracy in the first 100 epoch (Benificial for those who have a constrain on the computation power, feel free to play around with the learning rate and scheduler)

Data Augmentation:

In the original paper very extensive data augmentation were used such as placing the cifar10 images of size 32 × 32 into larger 126 × 126 pixel images and can hence be heavily scaled, rotated and color augmented. In our implementation we have only done very mild data augmentation. We hope that the accuracy will increase if you increase the data augmentation.

all-conv-keras's People

Contributors

iabhi7 avatar

Watchers

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