Giter Club home page Giter Club logo

ib-inn's Introduction

"Training Normalizing Flows with the Information Bottleneck for Competitive Generative Classification" (2020)

https://arxiv.org/abs/2001.06448

USAGE

  • All configuration files for all experiments in the paper are contained in the directory 'experiments_configs'.

  • Training (for one example configuration):

    python main.py train experiments_configs/cifar10/beta_ramp/beta_1.0000.ini
  • Testing:

    python main.py test experiments_configs/cifar10/beta_ramp/beta_1.0000.ini`
  • The cifar/mnist datasets should be downloaded automatically the first time it is run. For the OoD evaluation, tiny imagenet and quickdraw have to be downloaded separately.

REQUIREMENTS

To implement the INNs, we use of the FrEIA library (github.com/VLL-HD/FrEIA)

NOTE This code currently only works with the previous 0.2 version of FrEIA. To install it:

git clone https://github.com/VLL-HD/FrEIA.git
cd FrEIA
git checkout v0.2
python setup.py develop

Additional requirements:

Python >= 3.6

pip install -r requirements.txt

ib-inn's People

Contributors

ardizzone avatar wapu avatar dependabot[bot] avatar kleesiek 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.