A machine learning model that identifies dog breeds from images with high accuracy (~99% validation accuracy).
- Python 3.8+ (tested with Python 3.12)
- Dataset of 10 dog breeds (see Dataset section)
- 4GB+ RAM (no GPU required)
Download the dataset from: Kaggle - Dog Breed Image Dataset
Place the extracted dataset in the model/ directory with the following structure:
dataset/
├── Beagle/
├── Boxer/
├── Bulldog/
├── Dachshund/
├── German_Shepherd/
├── Golden_Retriever/
├── Labrador_Retriever/
├── Poodle/
├── Rottweiler/
└── Yorkshire_Terrier/
pip install -r requirements.txtpython3.12 model.pyOutput: Creates a trained model file dog_breed_classifier.keras and performance visualizations.
python3.12 model.py <image_path>Example:
python3.12 model.py test_dog.jpgpython3.12 predict_with_plots.pyOutput: Creates a visualization showing the predicted breed and confidence scores.

- Validation Accuracy: ~99%
- Supported Breeds: 10 popular dog breeds
- Processing Time: ~1 second per image on CPU