Skip to content

KaiKrah79/Project.create_image_classifier_oxfordflowers102_pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Programming with Python Project

Project code for Udacity's AI Programming with Python Nanodegree program. In this project, students first develop code for an image classifier built with PyTorch, then convert it into a command line application.

Information to the project

The task was to build an image classifier with pytorch to classify the oxford flowers dataset. Therefore i used the densenet121 net and changed the classifying layer. The second task was to write a command line application for training and one for predicting new images.

Explanation

There are the following files to use:

  • Image Classifier Project.ipynb: This is the Jupyter Notebook i developed the code and trained the classifier. For submission a html-file is included.
  • train.py: The command line application for training the classifier. You can choose between three architectures and if GPU is available using the GPU.
  • predict.py: The command line application for predicting new pictures. It is possible to choose the top k predictions for a picture.
  • cat_to_name.json: This file includes the class names for the flowers and the corresponding class numbers.

You need the flowers dataset as follows:

  1. /flowers/train/xx/yy.jpg
  2. /flowers/test/xx/yy.jpg
  3. /flowers/valid/xx/yy.jpg
in the same folder as the *.py files with xx as the categorical number of the flowers and yy as the filenames of the flowers.

Acknowledgements

This project was my final project at the Udacity Nanodegree program "AI Programming with Python". I am super thankful for this experience and proud to be certified with this nanodegree program.

License

This project is open source and available under the [Udacity License]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published