项目作者: LynnHo

项目描述 :
DCGAN LSGAN WGAN-GP DRAGAN PyTorch
高级语言: Python
项目地址: git://github.com/LynnHo/DCGAN-LSGAN-WGAN-GP-DRAGAN-Pytorch.git
创建时间: 2017-11-12T13:58:08Z
项目社区:https://github.com/LynnHo/DCGAN-LSGAN-WGAN-GP-DRAGAN-Pytorch

开源协议:MIT License

下载


News

  • 28 June 2019: We re-implement these GANs by Pytorch 1.1! The old version is here: v0 or in the “v0” directory.
  • Tensorflow 2 Version




GANs - Pytorch

" class="reference-link">

GANs - Pytorch

Pytorch implementations of DCGAN, LSGAN, WGAN-GP(LP) and DRAGAN.

Exemplar results

Fashion-MNIST

DCGAN LSGAN WGAN-GP DRAGAN

CelebA

DCGAN LSGAN
WGAN-GP DRAGAN
WGAN-LP DRAGAN-LP

Anime

WGAN-GP DRAGAN

Usage

  • Prerequisites

    • PyTorch 1.1
    • tensorboardX
    • scikit-image, oyaml, tqdm
    • Python 3.6
  • Datasets

  • Examples of training

    • Fashion-MNIST DCGAN

      1. CUDA_VISIBLE_DEVICES=0 python train.py --dataset=fashion_mnist --epoch=25 --adversarial_loss_mode=gan
    • CelebA DRAGAN

      1. CUDA_VISIBLE_DEVICES=0 python train.py --dataset=celeba --epoch=25 --adversarial_loss_mode=gan --gradient_penalty_mode=1-gp --gradient_penalty_sample_mode=dragan
    • Anime WGAN-GP

      1. CUDA_VISIBLE_DEVICES=0 python train.py --dataset=anime --epoch=200 --adversarial_loss_mode=wgan --gradient_penalty_mode=1-gp --gradient_penalty_sample_mode=line --n_d=5
    • see more training exampls in commands.sh

    • tensorboard for loss visualization

      1. tensorboard --logdir ./output/fashion_mnist_gan/summaries --port 6006