yenchenlin/pix2pix-tensorflow
关于
《Image-to-Image Translation Using Conditional Adversarial Networks》的 TensorFlow 实现。
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文pix2pix-tensorflow
TensorFlow implementation of Image-to-Image Translation Using Conditional Adversarial Networks that learns a mapping from input images to output images.
Here are some results generated by the authors of paper:

Setup
Prerequisites
- Linux
- Python with numpy
- NVIDIA GPU + CUDA 8.0 + CuDNNv5.1
- TensorFlow 0.11
Getting Started
- Clone this repo:
git clone [email protected]:yenchenlin/pix2pix-tensorflow.git
cd pix2pix-tensorflow
- Download the dataset (script borrowed from torch code):
bash ./download_dataset.sh facades
- Train the model
python main.py --phase train
- Test the model:
python main.py --phase test
Results
Here is the results generated from this implementation:
Facades:

More results on other datasets coming soon!
Note: To avoid the fast convergence of D (discriminator) network, G (generator) network is updated twice for each D network update, which differs from original paper but same as DCGAN-tensorflow, which this project based on.
Train
Code currently supports CMP Facades dataset. To reproduce results presented above, it takes 200 epochs of training. Exact computing time depends on own hardware conditions.
Test
Test the model on validation set of CMP Facades dataset. It will generate synthesized images provided corresponding labels under directory ./test.
Acknowledgments
Code borrows heavily from pix2pix and DCGAN-tensorflow. Thanks for their excellent work!
License
MIT
探索相关项目
加载中…