Code Monkey home page Code Monkey logo

supair's Introduction

Sum-Product Attend-Infer-Repeat

This is the official implementation of "Sum-Product Attend-Infer-Repeat" (SuPAIR) as presented in the paper "Faster Attend-Infer-Repeat with Tractable Probabilistic Models" by Karl Stelzner, Robert Peharz, and Kristian Kersting (ICML 2019).

SuPAIR learns to decompose scenes into objects and background in an unsupervised manner via a structured probabilistic modelling approach. By employing tractable sum-product networks as appearance models for objects and background, SuPAIR learns faster and more robustly than AIR, and works well even on images with noisy backgrounds.

SuPAIR performance SuPAIR noise results

Dependencies

We ran our experiments using Python 3.6 and CUDA 9.0, making use of the following Python packages:

  • tensorflow-gpu 1.7
  • numpy 1.15
  • scipy 1.1
  • scikit-image 0.14.1
  • visdom 0.1.8
  • observations 0.1.4
  • matplotlib 3.0
  • pillow 5.2

These may be installed via pip install -r requirements.txt. Other versions might also work but were not tested.

Project Structure

  • model.py contains the specification of the SuPAIR model and its inference network which are the main contributions of the paper
  • main.py contains the training loop and routines for running the reported experiments
  • config.py holds important options and hyperparameters
  • region_graph.py and RAT_SPN.py contain our implementation of (random) sum-product-networks
  • datasets.py handles the generation and loading of the various datasets
  • visualize.py contains routines for drawing visualizations
  • make_plots.py generates plots given performance data

Run

Simply run python src/main.py. Adjust the configuration object created at the bottom of the file as needed, or call one of the predefined functions to reproduce the experiments in the paper.

Citation

If you find this repository, or the ideas presented within useful in your research, please consider citing our paper:

@inproceedings{stelzner2019supair,
  title={Faster Attend-Infer-Repeat with Tractable Probabilistic Models},
  author={Stelzner, Karl and Peharz, Robert and Kersting, Kristian},
  booktitle={Proceedings of the 36th International Conference on Machine Learning},
  pages={5966--5975},
  year={2019},
  pdf = 	 {http://proceedings.mlr.press/v97/stelzner19a/stelzner19a.pdf},
  url = 	 {http://proceedings.mlr.press/v97/stelzner19a.html}
}

supair's People

Contributors

stelzner avatar

Watchers

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