Code Monkey home page Code Monkey logo

deep-learning-mini-project-s24's Introduction

NYU-Deep-Learning-Mini-Project-S24

Advanced Implementation of ResNet-18 for CIFAR-10 classification

Requirements

  • Python 3.6+
  • PyTorch 1.6.0+

Usage

  1. Train
mkdir path/to/checkpoint_dir
python train.py --checkpoint_dir path/to/checkpoint_dir

The training code execution result is in checkpoint/loss_log.txt

  1. Test

When your training is done, the model parameter file path/to/checkpoint_dir/model_79000.pth will be generated.

python test.py --params_path path/to/checkpoint_dir/model_79000.pth
  1. Jupyter notebooks for easy visualization and verification

You can run the Jupyter notebook file test.ipynb with clear visualization plots, which also clearly prints the final test accuracy and number of parameters. For plotting the training loss, we just use the log data in checkpoint/loss_log.txt.

Note

If you want to specify GPU to use, you should set environment variable CUDA_VISIBLE_DEVICES=0, for example.

References

  • Krizhevsky, A., Hinton, G., & others. (2009). Learning multiple layers of features from tiny images. Toronto, ON, Canada.
  • He, K., Zhang, X., Ren, S., & Sun, J. (2016). Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition (pp. 770โ€“778).
  • DeVries, T., & Taylor, G. W. (2017). Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv:1708.04552.
  • Loshchilov, I., & Hutter, F. (2016). Sgdr: Stochastic gradient descent with warm restarts. arXiv preprint arXiv:1608.03983.

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.