GithubHelp home page GithubHelp logo

flowers-image-classifier's Introduction

Flowers-Image-Classifier

This project is part of Udacity's AI Programming with Python Nanodegree.

The goals of this project is to classify flower images using a pretrained CNN model.

Versions

Command Line Application

To train a new network on a data set:

  • Run: python train.py
  • The current epoch, training loss, validation loss, and validation accuracy as the netowrk trains will be printed
  • Command line arguments:
    • Image folder as --dir with default value './flowers'
    • CNN model architecture as --arch with default value 'vgg'
    • Learning rate as --learning_rate with default value 0.001
    • Hidden units as --hidden_units with default value [512], pass several times to add multiple hidden units
    • Dropout as --dropout with default value 0.5
    • Number of epochs as --epochs with default value 20
    • Path to save checkpoint to as --checkpoint_path with default value './checkpoint.pth'
    • Processing unit --process_unit with default value 'gpu'

To predict flower name from an image:

  • Run: python predict.py
  • Command line arguments:
    • Path to image to predict as --image with default value './flowers/test/1/image_06764.jpg'
    • Path to retrieve checkpoint to as --checkpoint_path with default value './checkpoint.pth'
    • Top K predictions as --topk with default value 5
    • Path to JSON file containing label names as --labels with default value './cat_to_name.json'
    • Processing unit --process_unit with default value 'gpu'

flowers-image-classifier's People

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.