Git Product home page Git Product logo

intro_dgm's Introduction

Introduction to Deep Generative Modeling: Examples

This repository contains examples of deep generative models:

  1. Autoregressive Models (ARMs)
  2. Flow-based models (flows): RealNVP and IDFs (Integer Discrete Flows)
  3. Variational Auto-Encoders (VAEs): a plain VAE and various priors, a hierarchical VAE
  4. Diffusion-based Deep Generative Models (DDGMs): a Gaussian forward diffusion
  5. Hybrid modeling
  6. Energy-based Models
  7. Generative Adversarial Networks (GANs)
  8. Neural Compression with Deep Generative Modeling

The examples might look oversimplistic but that's the point! My idea is that everyone is able to follow every line of the code, and run the experiments within a couple of minutes on almost any laptop or computer. My goal is to encourage people who are new to understand and play with deep generative models. More advanced users, on the other hand, could refresh their knowledge or build on top of that to quickly check their ideas. Either way, I hope the code will help everyone to join a fascinating journey on deep generative modeling!

Requirements

In all examples, we used:

  • pytorch 1.7.0
  • numpy 1.17.2
  • matplotlib 3.1.1
  • scikit-learn 0.21.3
  • pytorch-model-summary 0.1.1
  • jupyter 1.0.0

Examples

All examples of implemented deep generative models are provided as jupyter notebooks. They can be find in the following folders:

  1. arms: an example of an autoregressive model with a causal convolutiona layer in 1D.
  2. flows: an example of a flow-based model, namely, RealNVP with coupling layers and permutation layers, and IDFs (Integer Discrete Flows).
  3. vaes: an example of a Variational Auto-Encoder using fully-connected layers and a standard Gaussian prior, and another example of various priors for VAEs, and a third example on a hierarchical VAE.
  4. ddgms: an example of a Diffusion-based Deep Generative Model using the a Gaussian forward diffusion with a fixed variace and a reverse diffusion parameterized by MLPs.
  5. hybrid_modeling: an example of a hybrid model using fully-connected layers and IDFs.
  6. ebms: an example of an energy-based model parameterized by an MLP.
  7. gans: an example of a GAN parameterized by MLPs.
  8. neural_compression: an example of applying deep generative modeling for image neural compression.

Citation

If you use this code in any way, please refer to it in the following manner:

  • APA style:
Tomczak, J. M. (2021). Deep Generative Modeling.
  • Bibtex:
@article{tomczak2021intro,
  title={Deep Generative Modeling},
  author={Tomczak, Jakub M},
  year={2021}
}

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.