Giter Site home page Giter Site logo

jinguang-dong / cat_or_dog-kaggle-vgg19-tensorflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 2012013382/cat_or_dog-kaggle-vgg19-tensorflow

0.0 1.0 0.0 16 KB

A simple Tensorflow code for fine-tuning VGG-19 to solve 'cat or dog' task in kaggle.

Python 100.00%

cat_or_dog-kaggle-vgg19-tensorflow's Introduction

Cat_or_dog-kaggle-vgg19-tensorflow

A simple Tensorflow code for fine-tuning VGG-16 to solve 'cat or dog' task in kaggle.

Requirements

Tensorflow > 1.3

Python > 2.7

vgg_19.ckpt from Tensorflow slim pre-trained model https://github.com/tensorflow/models/tree/master/research/slim

Data sets from kaggle https://www.kaggle.com/c/dogs-vs-cats-redux-kernels-edition/data

You should place vgg_19.ckpt in 'check_point' file folder and data in the 'data' file folder

Details

Fine-tune the last layer of VGG16 to tell cat or dog images. I extract 12500(30% of train set) validation samples from train set.

Batch size: 32

learning rate: 1e-4

dropout: 0.5

No other settings in order to make a simple initialization.

Run

Train: python train.py

Test and obtain result: python test.py

output

97% accuracy on validation set.

cat_or_dog-kaggle-vgg19-tensorflow's People

Contributors

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