Giter Site home page Giter Site logo

cs-433-project-2-fesenjoon's Introduction

Reproducibility Challenge: On Warm-Starting Neural Network Training

This repository contains the code used to reproduce and validate the results for the paper On Warm-Starting Neural Network Training: https://arxiv.org/abs/1910.08475

Installation

The implementation is in Python 3.8. You may use the following command to install the necessary packages.

pip install -r requirements.txt

Libraries

We use the following libraries:

  • PyTorch: For all deep learning implementations
  • Matplotlib: For plotting
  • Torchvision: For loading datasets
  • Tensorboard: To store results
  • Tensorflow: To read tensorboard format
  • Scipy: Used in data processing of SVHN by Torchvision

Experiments

A separate bash script exists for each of the experiments in the scripts folder. Run them from the root of project. For example, the following command will generate Figure 1 of the original paper.

bash scripts/figure1.sh

The scripts are named after figures/tables of the original paper. The exceptions are the scripts for the additional experiments in the reproducibility report. These include:

  • figure7_offline.sh: Generates Figure 1 of the original paper with shrink perturb method.
  • data_augmentation.sh: Generates Figure 1 of the original paper with data augmentation.
  • figure5_augmentation.sh: Generates Figure 5 of the original paper with data augmentation instead of shirnk perturb.

Training Scripts

There are several training scripts, which train models based on different settings of the experiments. Most experiments use train.py or train_online.py. To get information about what a script does run it with -h flag:

python3 train.py -h

Alternatively, read the description of the ArgumentParser in the code.

Pre-trained Models

The weights for ResNet-18 trained on half of CIFAR10 and checkpointed after every 10th epoch is available at: https://github.com/CS-433/cs-433-project-2-fesenjoon/releases/download/resnet18-half-cifar10/Dec12_21-44-54.zip

To use, extract the zip file and put the contents in exp/half_cifar.

Then run the commands normally excluding the one for training a model on half of CIFAR10.

Furthermore, results of individual runs for Table 1 (without averaging) is available under tables directory in NumPy format.

Contributors

  • Klim Kireev
  • Amirkeivan Mohtashami
  • Ehsan Pajouheshgar

This challenge was completed as the second project of CS-433 class at EPFL.

cs-433-project-2-fesenjoon's People

Contributors

mkrima avatar thedevilwillbebee avatar

Watchers

James Cloos avatar Matteo Pagliardini avatar Kireev Klim 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.