Giter Site home page Giter Site logo

data620004-midtermpj's Introduction

Midterm Project - Task 1

Pengwei Song & Yifan Qi

Model & Dataset

We use ResNet-34 for image classification on CIFAR-100. When you train or test the model for the first time, CIFAR-100 will be downloaded automatically.

Training

The training and testing should be operated in the resnet folder. Here is an example command to begin training:

python train.py --lr 0.005 --weight_decay 0.001 --epochs 25 --batch_size 32 --data_aug mixup 

Parameters:

  • lr: learning rate (default: 0.01)
  • weight_decay: regularization parameter (default: 0.0001)
  • epochs: number of epochs to train (default: 10)
  • batch_size: (default: 32)
  • data_aug: method of data augmentation, chosen from cutout, mixup, cutmix and None (default: None)
  • tuning: parameters adjusting mode, 0 for False and 1 for True. (default: 0)

After training, the model is saved in model folder with name showing data augmentation methods. Performance of models is shown in our report.

Testing

python test.py --data_aug mixup

A trained model will be loaded and the accuracy of the whole test set will be printed. Necessary model must be downloaded into model folder or generated by training before testing.

Visualization

The visualization of three images and results of data augmentation methods (cutout, mixup and cutmix) can be obtained using visualization.py. Results is shown in our report.

data620004-midtermpj's People

Contributors

liigoqi 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.