项目
在 GitHub 查看
jalola/improved-wgan-pytorch
关于
Improved WGAN in Pytorch
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Improved Training of Wasserstein GANs in Pytorch
This is a Pytorch implementation of gan_64x64.py from Improved Training of Wasserstein GANs.
To do:
- Support parameters in cli *
- Add requirements.txt *
- Add Dockerfile if possible
- Multiple GPUs *
- Clean up code, remove unused code *
* not ready for conditional gan yet
Run
- Example:
Fresh training
CUDA_VISIBLE_DEVICES=0,1,2,3 python train.py --train_dir /path/to/train --validation_dir /path/to/validation/ --output_path /path/to/output/ --dim 64 --saving_step 300 --num_workers 8
Continued training:
CUDA_VISIBLE_DEVICES=0,1,2,3 python train.py --train_dir /path/to/train --validation_dir /path/to/validation/ --output_path /path/to/output/ --dim 64 --saving_step 300 --num_workers 8 --restore_mode --start_iter 5000
Model
train.py: This model is mainly based onGoodGeneratorandGoodDiscriminatorofgan_64x64.pymodel from Improved Training of Wasserstein GANs. It has been trained on LSUN dataset for around 100k iters.congan_train.py: ACGAN implementation, trained on 4 classes of LSUN dataset
Result
1. WGAN: trained on bedroom dataset (100k iters)
| Sample 1 | Sample 2 |
|---|---|
![]() |
![]() |
2. ACGAN: trained on 4 classes (100k iters)
- dining_room: 1
- bridge: 2
- restaurant: 3
- tower: 4
| Sample 1 | Sample 2 |
|---|---|
![]() |
![]() |
Testing
During the implementation of this model, we built a test module to compare the result between original model (Tensorflow) and our model (Pytorch) for every layer we implemented. It is available at compare-tensorflow-pytorch
TensorboardX
Results such as costs, generated images (every 200 iters) for tensorboard will be written to ./runs folder.
To display the results to tensorboard, run: tensorboard --logdir runs
Acknowledgements
探索相关项目
加载中…



