Coder Social home page Coder Social logo

google_inception_v3_for_caffe's Introduction

Google Inception V3 for Caffe

revision 2

Introduction

This model is a replication of the model described in the Rethinking the Inception Architecture for Computer Vision

If you wish to train this model on ILSVRC2012 dataset remember to prepare LMDB with 300px images instead of 256px.

Hardware and Training

Original implementation from paper uses 32 batch size for 100 epochs using RMSProp with learning rate of 0.045. You need some Titan X or K40 with more than 10GB of RAM. Provided train_val.prototxt uses batch_size = 22 and fits into Titan X.

Please use NVIDIA/caffe for training. I was UNABLE to achieve good results using regular Caffe (probably because of different BatchNorm implementation).

Training on TINY SET

I have trained this model on ImageNet subset of 18 categories for 11 epochs using NVIDIA/caffe branch 0.15.5:

I0628 08:35:16.726322 26414 solver.cpp:362] Iteration 11704, Testing net (#0)
I0628 08:35:56.465996 26414 solver.cpp:429]     Test net output #0: acc/top-1 = 0.796649
I0628 08:35:56.466174 26414 solver.cpp:429]     Test net output #1: acc/top-5 = 0.962012
I0628 08:35:56.466193 26414 solver.cpp:429]     Test net output #2: loss = 1.17044 (* 1 = 1.17044 loss)

If you want to try it yourself you can find it here. Remember that this link provides model trained using ONLY 18 categories.

DIGITS

If you want to train this network using NVIDIA/DIGITS compatible train_val.prototxt is provided in digits folder for your pleasure. Please be advised that currently DIGITS web interface doesnt allow you to set following parameters for solver that allowed me to achieve such good results on tiny set:

  • rms_decay set to 0.9
  • clip_gradients set to 80
  • weight_decay set to 0.0004 (currently DIGITS calculate it automatically)

You can force DIGITS to use these parameters hardcoding these values into train_caffe.py

Just paste this code:

solver.rms_decay=0.9
solver.clip_gradients=80
solver.weight_decay=0.0004

Also if you will use DIGITS to create "New Image Classification Dataset" be sure to set Image Encoding to None.

Training on full ImageNet

Right now Im training it on full ImageNet set using provided solver.txt. I will publish it when it`s done.

License

This model is released for unrestricted use.

google_inception_v3_for_caffe's People

Watchers

James Cloos 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.