Git Product home page Git Product logo

flowerimageclassifier's Introduction

Flower Image Classifier

This Command Line Image Classifier project was part of my Nanodegree Program with Udacity. This is the first time I've ever created an AI that trains, validates and predicts from scratch.

Authors & Contributors

Mariya Shavshyshvili ([email protected]), with the help and instructions of the Udacity Nanodegree Program.

IMPORTANT CREDITS:

Johnny Metz's video on argparse helped me out a lot with understanding it's uses:

https://youtu.be/cdblJqEUDNo

LearnCode.academy's video on GitHub helped me with uploading this project to GitHub:

https://youtu.be/0fKg7e37bQE

File List

cat_to_name.json

functions_and_classes.py

LICENSE

predict.py

README.md

train.py

Terminal Instructions

Based on project instructions from Udacity, there are a few specific details about the terminal use that are best to note;

in train.py

In the terminal, train.py is best called with:

cd python train.py ./flowers -g

with cd being the directory in which train.py is in.

with -g representing the GPU connection so that everything runs faster.

with ./flowers being the directory in which we save our training, validation and testing sets. The ./flowers directory would have 3 folders: train, valid, test. These folders would be separated into sub-folders, holding the class number of the flower photos they contain.

in predict.py

In the terminal, predict.py is best called with:

cd python predict.py ./flowers/test/11/image_03098.jpg ./save_directory/checkpoint.pth -g

with cd being the directory in which predict.py is in.

with ./flowers/test/11/image_03098.jpg being the path to the image we'd like to predict.

with ./save_directory/checkpoint.pth being the path to the checkpoint we saved in train.py.

with -g representing the GPU connection so that everything runs faster.

Please note

As this project was submitted and grated, to avoid direct duplication of the code by future students I won't include the name of the Nanodegree program or the actual name of the project, as stated in the syllabus.

flowerimageclassifier's People

Contributors

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