Giter Site home page Giter Site logo

trumpets's Introduction

Official repo for Trumpets (paper)

Trumpets are injective variants of normalizing flows that allow for a small latent space dimension compared to the dataset size. This greatly improves the speed of training (upto 10x faster) while being comparable in terms of sample quality.

Other than image generation, we are more interested in inference applications---MAP estimation for inverse problems and UQ. We findthat injectivity of Trumpets lead to much better performance than baselines given the same generator architecture.

usage: train.py [-h] [--num_epochs NUM_EPOCHS] [--batch_size BATCH_SIZE] [--dataset DATASET] [--lr LR]
                [--ml_threshold ML_THRESHOLD] [--model_depth MODEL_DEPTH] [--latent_depth LATENT_DEPTH] [--learntop LEARNTOP]
                [--gpu_num GPU_NUM] [--remove_all REMOVE_ALL] [--desc DESC] [--train] [--notrain] [--inv] [--noinv] [--posterior]
                [--noposterior] [--calc_logdet] [--nocalc_logdet] [--inv_prob INV_PROB] [--snr SNR]
                [--inv_conv_activation INV_CONV_ACTIVATION] [--T T]

optional arguments:
  -h, --help            show this help message and exit
  --num_epochs NUM_EPOCHS
                        number of epochs to train for
  --batch_size BATCH_SIZE
                        batch_size
  --dataset DATASET     which dataset to work with
  --lr LR               learning rate
  --ml_threshold ML_THRESHOLD
                        when should ml training begin
  --model_depth MODEL_DEPTH
                        revnet depth of model
  --latent_depth LATENT_DEPTH
                        revnet depth of latent model
  --learntop LEARNTOP   Trainable top
  --gpu_num GPU_NUM     GPU number
  --remove_all REMOVE_ALL
                        Remove the previous experiment
  --desc DESC           add a small descriptor to folder name
  --train
  --notrain
  --inv
  --noinv
  --posterior
  --noposterior
  --calc_logdet
  --nocalc_logdet
  --inv_prob INV_PROB   choose from denoising (default) | sr | randmask | randgauss
  --snr SNR             measurement SNR (dB)
  --inv_conv_activation INV_CONV_ACTIVATION
                        activation of invertible 1x1 conv layer
  --T T                 sampling tempreture

This readme is still a work-in-progress , more details will be added on running UQ and inverse problems.

trumpets's People

Contributors

kkothari93 avatar amirehsan95 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.