- Project: Use a Pre-trained Image Classifier to Identify Dog Breeds
- Nanodegree program: AI Programming with Python
- Course provider: Udacity
Clone this repository with the tag project-starter-files to get the project starter files without any of the
solutions.
Using SSH
git clone --depth 1 --branch project-starter-files [email protected]:jsstrn/dog-breed-image-classifier.git Using HTTPS
git clone --depth 1 --branch project-starter-files https://github.com/jsstrn/dog-breed-image-classifier.gitFirst, install Anaconda. This should also install the latest version of Python 3 for you.
Check the version on Anaconda:
conda --versionUpdate Anaconda and its dependencies:
conda update condaCreate a new virtual environment:
conda create --name my-new-envActivate your new environment:
conda activate my-new-envCheck which environment you are currently on. The current environment is indicated by an asterisk *:
conda info --env
base /some/dir/to/your/env
my-new-env * /some/dir/to/your/envNow install the following packages:
conda install pillow
conda install torchvisionTo run the program:
python check_images.pyTo run image classifier with all three models
sh run_models_batch.shTo run image classifer against images in the uploaded_images directory:
sh run_models_batch_uploaded.sh“Programs are meant to be read by humans and only incidentally for computers to execute.”
-- Donald Knuth, The Art of Computer Programming.
