This repository is a collection of GANs to generate MNIST dataset. The deep learning framework for this repositoy is PyTorch.
More GAN models will be provided on this repository.
-
Install Python 3.
-
Install the Python packages in
requirements.txt
. If you use a virtual environment for Python package management, you can install all python packages needed by using the following bash command:$ pip install -r requirements.txt
-
Install PyTorch. The version of PyTorch should be greater or equal than 1.7.0. This repository provides the CUDA usage.
-
Modify
config.json
as your machine settings. -
Excute training process by
train.py
. An example of usage fortrain.py
are following:$ python train.py --model_name=gan
The following bash command will help you:
$ python train.py -h