A deep learning project to classify animal images using PyTorch and Keras. This project uses a dataset of Cats, Dogs, and Foxes to train a Convolutional Neural Network (CNN).
- Dataset Integration: Automatically downloads the dataset from Kaggle using
kagglehub. - Model Architecture: Custom CNN implementation in PyTorch.
- Preprocessing: Robust image preprocessing and augmentation.
- Inference: Prediction script for individual images.
- Languages: Python
- Libraries:
- PyTorch
- TensorFlow / Keras (for inference)
- Torchvision
- Matplotlib
- NumPy
Image_Classification.ipynb: Main notebook containing data loading, training, and evaluation logic.animal_classifier.pth: Trained model weights (generated after training).
The project uses the Animal Image Dataset (Cats, Dogs, and Foxes) from Kaggle.
- Open the
.ipynbfile in Google Colab or a local Jupyter environment. - Ensure you have the required dependencies installed:
pip install torch torchvision tensorflow kagglehub matplotlib numpy
- Run the cells sequentially to download the data and train the model.
Created by VastSea0