项目
在 GitHub 查看 


Zeleni9/pytorch-wgan
关于
DCGAN、WGAN-CP、WGAN-GP 的 PyTorch 实现
其他项目实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Pytorch code for GAN models
This is the pytorch implementation of 3 different GAN models using same convolutional architecture.
- DCGAN (Deep convolutional GAN)
- WGAN-CP (Wasserstein GAN using weight clipping)
- WGAN-GP (Wasserstein GAN using gradient penalty)
Dependecies
The prominent packages are:
- numpy
- scikit-learn
- tensorflow 2.5.0
- pytorch 1.8.1
- torchvision 0.9.1
To install all the dependencies quickly and easily you should use pip
pip install -r requirements.txt
Training
Running training of DCGAN model on Fashion-MNIST dataset:
python main.py --model DCGAN \
--is_train True \
--download True \
--dataroot datasets/fashion-mnist \
--dataset fashion-mnist \
--epochs 30 \
--cuda True \
--batch_size 64
Running training of WGAN-GP model on CIFAR-10 dataset:
python main.py --model WGAN-GP \
--is_train True \
--download True \
--dataroot datasets/cifar \
--dataset cifar \
--generator_iters 40000 \
--cuda True \
--batch_size 64
Start tensorboard:
tensorboard --logdir ./logs/
Walk in latent space
Interpolation between a two random latent vector z over 10 random points, shows that generated samples have smooth transitions.

Generated examples MNIST, Fashion-MNIST, CIFAR-10



Inception score

Useful Resources
探索相关项目
加载中…