Giter Club home page Giter Club logo

bigbigan-tensorflow2.0's Introduction

BigBiGAN-TensorFlow2.0

Introduction

An unofficical low-resolution (32 x 32) implementation of BigBiGAN
Paper: https://arxiv.org/abs/1907.02544

Architecture

bigbigan

Dependancy

Python 3.6
TensorFlow 2.0.0
Matplotlib 3.1.1
Numpy 1.17

Implementation

Generator and discriminator

biggan Discriminator F and Generator G come from BigGAN. There are 3 residual blocks in G and 4 residual blocks in F.
Discriminator H und J are 6-layer MLP(units=50) with skip-connection.

Encoder

As suggested in the paper, take higher resolution input (64 x 64) and RevNet(13-layers) as backend.
After RevNet, a 4-layer MLP(Unit=256) is taken.
The Reversible Residual Network: Backpropagation Without Storing Activations(https://arxiv.org/abs/1707.04585)

Usage

Set up the flags in main.py. In terminal, enter python3 main.py to execute the training.

Supported dataset:

MNIST, Fashion-MNIST and CIFAR10.

Conditional und unconditional GAN:

Conditional GAN will use the labels in the corresponding dataset to generate class-specific images.

Channels und batch size:

Change them to fit in your GPU according to your VRAM(>=6 GB recommended).

Known Issue

Conditional GAN is for the time being slightly unstable.

Conditional generation examples

MNIST mnist Fashion-MNIST mnist

To do list

Stochastic encoder

Acknowledegement

BigGAN https://github.com/taki0112/BigGAN-Tensorflow
RevNet https://github.com/google/revisiting-self-supervised

Authors

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.