Skip to content

Pytorch implementation for Dogs vs. Cats Redux: Kernels Edition, Kaggle competition. Modified from Image Classification with Pytorch. Homework of Deep Learning, UCAS course 081203M05009H. Kaggle猫狗分类比赛的Pytorch实现, 修改自Image Classification with Pytorch, 中国科学院大学深度学习作业.

License

Notifications You must be signed in to change notification settings

CarlossShi/kaggle-dogs-vs-cats-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kaggle-dogs-vs-cats-pytorch

Pytorch implementation for Dogs vs. Cats Redux: Kernels Edition, Kaggle competition. Modified from Image Classification with Pytorch. Homework of Deep Learning, UCAS course 081203M05009H.

Kaggle猫狗分类比赛的Pytorch实现, 修改自Image Classification with Pytorch, 中国科学院大学深度学习作业.

Requirements

  • Colab with P100 GPU and 27.2 gigabytes RAM
  • Python 3.7.10

Getting Started

Training on Colab

  1. Open training.ipynb on Colab.
  2. Create a new folder named kaggle-dogs-vs-cats-pytorch which should be located in /content/drive/MyDrive/kaggle-dogs-vs-cats-pytorch/ after being mounted.
  3. Create some folders in it so as to form the following file structure.
├── training.ipynb
├── model
├── result
└── data
    ├── dogs-vs-cats
    │   ├── *.jpg/*.png
    │   └── ...
    ├── hearthstone
    │   ├── *.jpg/*.png
    │   └── ...
    └── ...
  1. Find and classify some pictures to be tested into subfolders of /data/.
  2. Appropriately modify parameters like batch size, learning rate or epoch size.
  3. Run the code. Training and test results are demonstrated below respectively.

traning curve

Test with Pretrained Model

Run the following code in terminal. Check test results.

python test.py -d ./assets/dogs-cats/

dogs cats test

hearthstone test

License

MIT

Acknowledgments

About

Pytorch implementation for Dogs vs. Cats Redux: Kernels Edition, Kaggle competition. Modified from Image Classification with Pytorch. Homework of Deep Learning, UCAS course 081203M05009H. Kaggle猫狗分类比赛的Pytorch实现, 修改自Image Classification with Pytorch, 中国科学院大学深度学习作业.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published