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.
Project assets:
Image Classifier Project.ipynbJupyter NotebookImage Classifier Project.htmlHTML export of the Jupyter Notebook above.train.pyto train a new network on a data set.predict.pyto predict flower name from an image.
Help:
python ./train.py -hTrain on CPU with default vgg16:
python ./train.py ./flowers/train/Help
python ./predict.py -hBasic Prediction
python ./predict.py flowers/valid/5/image_05192.jpg checkpoint.pthPrediction with GPU
python ./predict.py flowers/valid/5/image_05192.jpg checkpoint.pth --gpu