This project focuses on classifying dog breeds from images using deep learning. The model is fine-tuned on the MobileNetV2 architecture and trained on the Kaggle Dog Breed Identification dataset. The implementation was done in Google Colab using TensorFlow and Keras.
- Source: Kaggle Dog Breed Identification Dataset
- Number of Classes: 120 dog breeds
- Data Type: Images with corresponding breed labels
- Pretrained Model: MobileNetV2 (TensorFlow 2)
- Fine-Tuning: Trained on the Kaggle dataset with additional layers added for classification
- Input Size: 224x224 pixels
- Optimization: Adam optimizer with categorical cross-entropy loss
- Evaluation: Accuracy and loss metrics
- Python
- TensorFlow & Keras
- Google Colab
- NumPy, Pandas, Matplotlib,Tensor Flow
-
Data Preprocessing
- Loaded images from the Kaggle dataset
- Resized images to 224x224 pixels
- Normalized pixel values
- One-hot encoded the labels
-
Model Training
- Used MobileNetV2 as the base model
- Added fully connected layers for classification
- Fine-tuned the model on the dataset
- Used data augmentation to improve generalization
-
Evaluation
- Split dataset into training and validation sets
- Measured accuracy and loss
- Tested on unseen images
-
Deployment (Future Work)
- Integrating the model into a Kotlin Jetpack Compose App
- Using CameraX for real-time image capture
- Clone the repository:
git clone https://github.com/yourusername/dog-breed-classification.git cd dog-breed-classification
- Install dependencies:
pip install -r requirements.txt
- Run the training script:
python train.py
- Test the model:
python predict.py --image path/to/image.jpg
- Achieved high accuracy in breed classification
- Improved performance using fine-tuning and data augmentation
- Future goal: Deploy in a mobile app for real-time prediction
- Optimize model inference speed for mobile deployment
- Improve accuracy with additional data augmentation techniques
- Implement a lightweight version for edge devices
- Kaggle for providing the dataset
- Google for the MobileNetV2 model
- TensorFlow & Keras for deep learning support
- Google colab for programming