Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avhirupc/stability-of-gans
https://github.com/avhirupc/stability-of-gans
dcgan generative-adversarial-network gradient-penalty loss-sensitive-gan lsgan mnist mnist-classification wassertein-gan wgan wgan-gp
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/avhirupc/stability-of-gans
- Owner: avhirupc
- Created: 2018-04-13T08:38:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T14:14:27.000Z (almost 7 years ago)
- Last Synced: 2024-11-09T23:31:48.332Z (3 months ago)
- Topics: dcgan, generative-adversarial-network, gradient-penalty, loss-sensitive-gan, lsgan, mnist, mnist-classification, wassertein-gan, wgan, wgan-gp
- Language: Python
- Size: 11.1 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stability-of-GANs
The following repository contains Pytorch implemenations of Generative Adversarial Network Implementations. This project discusses effects of different GAN approaches at training.
# Types of GANs
[x] Deconvolutional GAN(DCGAN)
[x] Loss Sensitive GAN(LSGAN)
[x] Wassertein GAN(WGAN)
[x] Wassertein GAN with Gradient Penalty()
[ ] Energy GAN
[ ] Evolutionary GAN# Training command
CUDA_VISIBLE_DEVICES=1 python main.py -type "WGAN" -epochs 100 -is_cuda True -lr 5e-6## Conclusion and Results
* Even after multiple initialization,DCGAN tends to be more susceptible to problem of mode collapse.
* Choice of hyperparameters are really important.Lower learning rate is better than high.
* I was not able to train WGAN when discriminator didn't use sigmoid,I am yet not aware of the reason for it. Theoretically,WGAN is not predicting probability and its only concerned with earth mover distance, so it shouldn't have been a problem
* Quick decrease in loss of generator loss, and increase in loss of discriminator is a sign of mode collapse.
* Keep saving your model regularly,at times, it seems that your model starts generating impressive results, after a tea break , you are left with garbage.
### Wassertein GAN(WGAN)
![](assets/2.png)
![](assets/3.png)
![](assets/4.png)
![](assets/1.png)
### LSGAN
![](assets/5.png)
![](assets/11.png)
### DCGAN
![](assets/8.png)
![](assets/9.png)