Giter VIP home page Giter VIP logo

carlossshi / kaggle-dogs-vs-cats-pytorch Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 41.81 MB

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: MIT License

Jupyter Notebook 99.65% Python 0.35%
ucas dogs-vs-cats kaggle pytorch colab 081203m05009h

kaggle-dogs-vs-cats-pytorch's Introduction

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

kaggle-dogs-vs-cats-pytorch's People

Contributors

carlossshi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.