Project code for Udacity's AI Programming with Python Nanodegree program. In this project,code for an image classifier built with PyTorch, then convert it into a command line application.
This repository contains an image classifier model trained on flowes folder for classifying images into top k categories. The model is implemented in pyTorch, and the code includes training, evaluation, and inference functionalities.
- Python
- PyTorch
- Numpy
- Matplotlib
git clone https://github.com/johnwanjema/Image-classifier-project
git init
git remote add origin <your-repository-url>
To train the model on your own dataset, use the following command:
python train.py --dir data_dir --arch VGG --learning_rate 0.01 --hidden_units 512
Use the trained model to classify an image:
python predict.py --image /path/to/image --checkpoint checkpoint --category_names cat_to_name.json --top_k 5
The main dependencies and versions required to run the code are included in requirements.txt
Create an issue mentioning the bug you have found.
- N/A
Contact John Wanjema for further help/support.
This project is licensed under the MIT License. See the LICENSE file for details.