Giter VIP home page Giter VIP logo

transfer_learning_tensorflow's Introduction

Transfer Learning for Dog Breed Classification

I peformed image classification on the Stanford Dogs Dataset. The dataset contains images of 120 breeds of dogs. You can read more about the dataset on this page. You can directly download the Images here.

I used different models to experiment what kind of accuracy is obtainable.

Model Learning Steps Accuracy
Inception-v3 1000 92%
Inception-v3 4000 94%
Resnet 4000 96%
Mobilenet 4000 80%

Requirements

  • Python
  • Tensorflow
  • Tensorhub

Usage

If you would like to test this model out you can use the label_image.py script to do so.

Format:

python label_image.py --graph_data=<whichever_output_graph_learning_rate> --labels=output_labels.txt --input_layer=Placeholder --output_layer=final_result --image=<name_of_image_you_want_to_test>

Example:

python label_image.py --graph_data=output_graph_inception_1000.pb --labels=output_labels.txt --input_layer=Placeholder --output_layer=final_result --image=./test_photos/doberman_2.jpg

This will print out couple dog breed names followed by the likeliness of the picture belonging to that breed of dog.

Of course you can experiment it with any dog picture you would like, but if you want to try it out with some of the existing pictures in the dataset below are some names.

Some of the popular dog breed names that exist in the directory:

  1. Beagle, 2. Bernese Mountain Dog, 3. Bloodhound, 4. Border Collie, 5. Doberman, 6. German Shepherd, 7. Malamute

Here are some less common dog breeds but equally beautiful looking:

  1. Afghan Hound, 2. Giant Schnauzer, 3. Ibizan Hound, 4. Irish Wolfhound, 5. Kuvasz, 6. Vizsla, 7. Weimaraner

I have also included a directory called "test_photos" which includes some random pictures of some dog breeds I grabbed from simple Google image searching if you think that would be easier for you to test it out.

Here's the doberman_2.jpg image:

Here's the output from that:

alt text


transfer_learning_tensorflow's People

Contributors

moon05 avatar

Stargazers

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