Coder Social home page Coder Social logo

lslsbj89 / dcgan_wgan_wgan-gp_lsgan_sngan_rsgan_began_acgan_pggan_tensorflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mingtaoguo/dcgan_wgan_wgan-gp_lsgan_sngan_rsgan_began_acgan_pggan_tensorflow

0.0 1.0 0.0 2.18 MB

Implementation of some different variants of GANs by tensorflow, Train the GAN in Google Cloud Colab, DCGAN, WGAN, WGAN-GP, LSGAN, SNGAN, RSGAN, RaSGAN, BEGAN, ACGAN, PGGAN, pix2pix, BigGAN

License: MIT License

Python 100.00%

dcgan_wgan_wgan-gp_lsgan_sngan_rsgan_began_acgan_pggan_tensorflow's Introduction

DCGAN_LSGAN_WGAN_WGAN-GP_SNGAN_RSGAN_BEGAN_ACGAN_PGGAN_pix2pix_BigGAN

Implementation of some different variants of GANs

Introduction


This code is mainly implement some basic GANs about 'DCGAN', 'WGAN', 'WGAN-GP', 'LSGAN', 'SNGAN', 'RSGAN'&'RaSGAN', 'BEGAN', 'ACGAN', 'PGGAN', 'pix2pix', 'BigGAN'.

More details of these GANs, please see follow papers:

  1. DCGAN: Unsupervised representation learning with deep convolutional generative adversarial networks

  2. WGAN: Wasserstein gan

  3. WGAN-GP: Improved training of wasserstein gans

  4. LSGAN: Least Squares Generative Adversarial Networks

  5. SNGAN: Spectral normalization for generative adversarial networks

  6. RSGAN&RaSGAN: The relativistic discriminator: a key element missing from standard GAN

  7. BEGAN:BEGAN: Boundary Equilibrium Generative Adversarial Networks

  8. ACGAN: Conditional Image Synthesis With Auxiliary Classifier GANs

  9. PGGAN: Progressive Growing of GANs for Improved Quality, Stability, and Variation

  10. pix2pix: Image-to-Image Translation with Conditional Adversarial Networks

  11. BigGAN: Large Scale GAN Training for High Fidelity Natural Image Synthesis [Code]

Attention

If your computer don't have GPU to accelerate the training process, please click Google Cloud Colab to train the GANs.

How to use

Firstly, you should download the data 'facedata.mat' from Baidu Drive or Google Drive, then put the file 'facedata.mat' into the folder 'TrainingSet'.

Requirements

  1. python3.5
  2. tensorflow1.4.0
  3. pillow
  4. scipy
  5. numpy

Results of this code

This result is using DCGAN trained about 8000 iterations.

Compare LSGAN, WGAN, WGAN-GP, SNGAN, RSGAN of different iteration

Convergence of BEGAN

ACGAN for face generating

dataset: download address: Baidu Drive password: 5egd

Fixed label, change noise slightly Fixed noise, change label slightly

PGGAN for face generating

SNGAN for cifar-10

D_loss G_loss results

Pix2Pix

Dataset: Google maps download address: http://efrosgans.eecs.berkeley.edu/pix2pix/datasets/maps.tar.gz

Edges2Shoes download address: http://efrosgans.eecs.berkeley.edu/pix2pix/datasets/edges2shoes.tar.gz

dcgan_wgan_wgan-gp_lsgan_sngan_rsgan_began_acgan_pggan_tensorflow's People

Contributors

mingtaoguo avatar

Watchers

James Cloos 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.