/LSGAN-with-PyTorch

PyTorch implementation of the Least Squares Generative Adversarial Networks

Primary LanguagePythonMIT LicenseMIT

Least Squares Generative Adversarial Networks with PyTorch

Original paper: Least Squares Generative Adversarial Networks

LSGAN is the same as DCGAN, but it use different Loss function.

For the discriminator:

and for the generator:

How to run this code?

You can simply run this with

python main.py

All settings and hyperparameters are stored in config.toml file