Coder Social home page Coder Social logo

hill-climbing-augmentation's Introduction

Automatic Augmentation by Hill Climbing

When doing data augmentation for images, it is not always intuitive for the user how much shear or translation to apply.

In this proposal, the model is always being trained in two branches, one branch having more intensive augmentation than the other.

After a period (e.g. a epoch), the two branches are evaluated using the validation. The weaker branch is eliminated, and the stronger branch becomes the parent of the following two branches.

  • Ricardo Cruz, Joaquim F. Pinto Costa, and Jaime S. Cardoso. "Automatic Augmentation by Hill Climbing." International Conference on Artificial Neural Networks. Springer, Cham, 2019. (in revision)

The method is fairly easy to implement. In any case, this is how we implemented it in Keras. We saved and loaded models from the disk as necessary.

The code implements both a classifier and an U-Net architecture (mymodels.py) and uses our method in train.py and random and Bayesian search is implemented in train_random.py.

The data used is referenced in the paper. Please email me if you have problems with anything.

hill-climbing-augmentation's People

Contributors

rpmcruz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

michael-wzhu

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.