This repository is for the TensorFlow2 implementation for WGAN. This repository provides the training module and Jupyter notebook for testing a generation of the trained models. MNIST dataset was used for this repository.
The result is not so good...
-
Install Python 3.5.2.
-
Install TensorFlow ver 2.0.0. If you can use a GPU machine, install the GPU version of TensorFlow, or just install the CPU version of it.
-
Install Python packages(Requirements). You can install them simply by using following bash command.
$ pip install -r requirements
You can use
Virtualenv
, so that the packages for requirements can be managed easily. If your machine haveVirtualenv
package, the following bash command would be useful.$ virtualenv wgan-tf2-venv $ source ./wgan-tf2-venv/bin/activate $ pip install -r requirements.txt
Note: TensorFlow provides dataset modules for some well known datasets such as MNIST, CIFAR-10 etc. In this repository, the only usage for TensorFlow MNIST dataset module was implemented yet. Usages for other datasets will be implemented too.
-
Modify the path for dataset in
config.py
. -
Modify the path for directory for saving model checkpoint.
-
Execute training process by
train.py
.
The Jupyter notebook for checking results and testing the image generation is provided. Please check result_plot.ipynb
.
- GAN: Generative Adversarial Nets
- WGAN : Wasserstein GAN
Hyungcheol Non / About Me