Awesome Open Source
Awesome Open Source

ICCV paper of DualGAN

DualGAN: unsupervised dual learning for image-to-image translation

please cite the paper, if the codes has been used for your research.

architecture of DualGAN


How to setup


  • Linux

  • Python (2.7 or later)

  • numpy

  • scipy

  • NVIDIA GPU + CUDA 8.0 + CuDNN v5.1

  • TensorFlow 1.0 or later

Getting Started


  • clone this repo:
git clone

cd DualGAN
  • download datasets (e.g., sketch-photo), run:
bash ./datasets/ sketch-photo
  • download pre-trained model (e.g., sketch-photo), run:
bash ./checkpoint/ sketch-photo
  • train the model:
python --phase train --dataset_name sketch-photo --image_size 256 --lambda_A 1000.0 --lambda_B 1000.0 --epoch 100
  • test the model:
python --phase test --dataset_name sketch-photo --image_size 256 --lambda_A 1000.0 --lambda_B 1000.0 --epoch 100


Similarly, run experiments on facades dataset with the following commands:

bash ./datasets/ facades

python --phase train --dataset_name facades --lambda_A 1000.0 --lambda_B 1000.0 --epoch 100

python --phase test --dataset_name facades --lambda_A 1000.0 --lambda_B 1000.0 --epoch 100

For thoese who cannot download datasets or pretrained models using the scripts, please try manual downloading from the link as below:

all datasets from google drive

pretrained models from google drive

Experimental results:

day2night da2ni la2ph ph2la sk2ph ph2sk ch2oi oi2ch


Codes are built on the top of pix2pix-tensorflow and DCGAN-tensorflow. Thanks for their precedent contributions!

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (52,053
tensorflow (2,131
image (480
implementation (23

Find Open Source By Browsing 7,000 Topics Across 59 Categories