Personal project to build deep learning model to classification images of Dogs and Cats using PyTorch.
The data used for the project was taken from Kaggle, including labelled images of Dogs and Cats (12500 images each), and unlabelled ones.
-
Enviroments: Python 3.10.6 + CUDA 12.0
-
Required library:
pip install -r requirements.txt
Labelled data was used to train the model, 12500 images for each categories was divided 80% as train data and 20% as test data as shown:
To run, use this command
python train.py
Hyperparameters used for this model are:
- Epoch = 10
- Learning rate = 1e-5
To run, get the URL of the picture, insert it the code and run:
python infer.py
![]() |
![]() |
---|
- Further improve the accuracy of the model
- Try out other pretrained models