Coder Social home page Coder Social logo

fine-tuning's Introduction

Notice

Oxford102 is forked from caffe-Oxford102. I modified some code and trained with VGG16 rather than VGG_S.I got better results than the original version.

caffe-oxford102

This bootstraps the training of deep convolutional neural networks with Caffe to classify images in the Oxford 102 category flower dataset. A more detailed explanation can be found here. The prototxt files for fine-tuning AlexNet and VGG_S models are included and use initial weights from training on the ILSVRC 2012 (ImageNet) data.

To download the Oxford 102 dataset, prepare Caffe image files, and download pre-trained model weights for CaffeNet and VGG_16, run

python bootstrap.py

This will give you some pretty flower pictures:

alt tag

The categories are split into training, testing, and validation sets. It seems odd that there are more testing images than training images.

alt tag

CaffeNet

Once you've run the bootstrap.py script, you can begin training from this directory with:

cd CaffeNet
caffe train -solver solver.prototxt -weights pretrained-weights.caffemodel -gpu 0

VGG-16

To train,

cd VGG16
caffe train -solver solver.prototxt -weights pretrained-weights.caffemodel -gpu 0

ResNet-50

If you want to use that: you need running convert_imageset.exe script to get lmdb and downloading the model of resnet-50

Results

Model Valid Acc Test Acc
CaffeNet 83.90% 81.43%
VGG16 89.12% 86.31%
ResNet-50 91.37% 88.08%

Blog address


zhihu

fine-tuning's People

Contributors

junyuseu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fine-tuning's Issues

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.