Awesome Open Source
Awesome Open Source


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:



  • 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 ./ facades
  • Train the model
python --phase train
  • Test the model:
python --phase test


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.


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 the model on validation set of CMP Facades dataset. It will generate synthesized images provided corresponding labels under directory ./test.


Code borrows heavily from pix2pix and DCGAN-tensorflow. Thanks for their excellent work!



Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (836,862
Network (37,571
Tensorflow (22,592
Adversarial (3,523
Facade (2,392
Adversarial Networks (899
Pix2pix (554
Image Translation (342