Coder Social home page Coder Social logo

gans-jax's Introduction

Generative Adversarial Networks in JAX

This repository holds several notebooks that implement GANs in JAX using the Flax Linen package. All models are trained on Colab using the MNIST dataset.

Todo's

I still want to add additional models to this repository. I'm working on the following additions:

  • StyleGAN
  • CycleGAN

Deep Convolutional GAN

The original GAN with architecture and other tips from the GANs for representation learning paper.

Wasserstein GAN with Penality

Training GANs is a notoriously difficult process. Even by carefully selecting the model architecture, training can still suffer due to mode collapse. The authors of the Wasserstein GAN paper argue the biggest problem is the way that the vanilla GAN learns a distribution; by switching to minimizing the earth mover distance we can alleviate this problem.

Conditional GAN

This is the logical next step after the vanilla GAN. If we do have labels, we should utilize them somehow. The Conditional GAN, as the name implies, conditions the output of the generator on the labels in addition to the noise. The discriminator in turn receives both the generated/real images and the label for classification.

InfoGAN

My personal favorite is the information-maximizing GAN. As the authors mention, because the info loss converges faster than the GAN loss, this addition basically comes for free. The result is a somewhat disentangled latent space where digits are easily separable. A great reference and interpretation of both the InfoGAN objective and the vanilla objective can be found here in Ferenc Huszár's blog.

gans-jax's People

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.