Giter VIP home page Giter VIP logo

fast-pba_autoaugment's Introduction

Comparison of Fast AutoAugment and Population Based Augmentation

The code is an adaptation of the Official Fast AutoAugment implementation in PyTorch available here.

Fast AutoAugment is a simplified version of the well known AutoAugment paper of Google Brain.

  • Fast AutoAugment learns augmentation policies using a more efficient search strategy based on density matching.
  • Fast AutoAugment speeds up the search time by orders of magnitude while maintaining the comparable performances.

The code is also modified so that it can use the augmentation schedule policiy obtained via the official implementation of the Population Based Augmentation available here. Population Base Augmentation is a method that learns a data-augmentation schedule policy and applied during training. The underlying intuition being that at the beginning, there is no need to perform a very elaborated data-augmentation. However, the more the neural network learns, the better the data-augmentation should be. Data-augmentation schedule policies can be found in the folder schedules.

Table Results

Model(CIFAR-100) Baseline Cutout AutoAugment Fast AutoAugment
(transfer/direct)
PBA
PyramidNet+ShakeDrop 14.0 12.2 10.7 11.7 11.4

Run

Prerequisite:

Download CIFAR-100 dataset.

How to run:

cd /usr/share/bind_mount/scripts/MicroNet/Training
pip install -r requirements.txt
export PYTHONPATH="$PYTHONPATH:/usr/share/bind_mount/scripts/MicroNet/Training"
cd FastAutoAugment
horovodrun -np 4 --cache-capacity 2048 python train.py -c confs/pyramid272a200b.yaml --tag pyramidnet_cifar100 --horovod

The argument np allows you to choose the number of GPUs you want to use (here 4).

Please see the confs/pyramid272a200b.yaml file to get more insights on the parameters used for the training process. You may notice an argument named aug. It allows you to choose which data augmentation policy you want to use.

The checkpoint weights are regularly saved (every 10 epochs) and put in the directory /app/results/checkpoints.

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.