The Dog Breed Classifier is a deep learning project that predicts the breed of a dog from an input image. The model is trained to classify 120 different dog breeds using a dataset of 10,000+ labeled images sourced from Kaggle.
The project leverages transfer learning with a pre-trained MobileNetV2 architecture to achieve efficient and accurate multi-class image classification.
- π§ Predicts 120 dog breeds from images
- β‘ Uses transfer learning for faster training and better generalization
- π Evaluates performance using precision, recall, and confusion matrix
- βοΈ Trained and tested on Google Colab (T4 GPU)
- π Supports real-world testing on unseen images
- Language: Python
- Deep Learning: TensorFlow, Keras
- Model Architecture: MobileNetV2 (Transfer Learning)
- Data Processing: NumPy, Pandas
- Visualization: Matplotlib, Seaborn
- Platform: Google Colab (GPU-enabled)
- Source: Kaggle
- Size: 10,000+ images
- Classes: 120 dog breeds
- Images are organized by breed folders and split into training and validation sets.
- Resized images to match MobileNetV2 input dimensions
- Normalized pixel values
- Applied data augmentation (rotation, flipping, zoom) to reduce overfitting
- Used MobileNetV2 as the base model with pre-trained ImageNet weights
- Added custom fully connected layers for multi-class classification
- Froze base layers initially and fine-tuned for better performance
- Trained using categorical cross-entropy loss
- Optimized with Adam optimizer
- Used Google Colab T4 GPU to reduce training time
The model performance was evaluated using:
- Confusion Matrix
- Precision & Recall
- Overall Classification Accuracy
Hyperparameters were fine-tuned to improve accuracy and generalization on unseen data.
- Tested the trained model on sample dog images
- Verified predictions for real-world usability
- Model can be extended into a web or mobile application for deployment
- Open the notebook in Google Colab
- Enable GPU:
Runtime β Change runtime type β GPU - Upload the dataset or connect Kaggle API
- Run all cells sequentially
- Test the model with sample images
- Improve accuracy with larger datasets
- Experiment with advanced architectures (EfficientNet, ResNet)
- Deploy as a web application using Flask or FastAPI
Kaif Ali Khan Computer Science Undergraduate | ML & Full-Stack Developer