资源算法Improved Training of Wasserstein GANs

Improved Training of Wasserstein GANs

2019-09-10 | |  95 |   0 |   0

Improved Training of Wasserstein GANs in Pytorch

This is a Pytorch implementation of gan_64x64.py from Improved Training of Wasserstein GANs.

Prerequisites

  • Python >= 3.6

  • Pytorch v0.4.0

  • Numpy

  • SciPy

  • tensorboardX (installation here). It is very convenient to see costs and results during training with TensorboardX for Pytorch

  • TensorFlow for tensorboardX

Model

  • gan_train.py: This model is mainly based on GoodGenerator and GoodDiscriminator of gan_64x64.py model from Improved Training of Wasserstein GANs. It has been trained on LSUN dataset for around 100k iters.

  • congan_train.py: ACGAN implementation, trained on 4 classes of LSUN dataset

Result

1. WGAN: trained on bedroom dataset (100k iters)

Sample 1 | Sample 2 :-------------------------:|:-------------------------: samples_1.png | samples_2.png

2. ACGAN: trained on 4 classes (100k iters)

  • dining_room: 1

  • bridge: 2

  • restaurant: 3

  • tower: 4

Sample 1 | Sample 2 :-------------------------:|:-------------------------: acgan_samples_1.png | acgan_samples_2.png

Testing

During the implementation of this model, we built a test module to compare the result between original model (Tensorflow) and our model (Pytorch) for every layer we implemented. It is available at compare-tensorflow-pytorch

TensorboardX

Results such as costs, generated images (every 200 iters) for tensorboard will be written to ./runs folder.

To display the results to tensorboard, run: tensorboard --logdir runs

Acknowledgements

上一篇:AGE

下一篇:BEGAN-pytorch

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...