Awesome Open Source
Awesome Open Source

Image-to-Image Translation (Chainer)

Chainer implementation for Image-to-Image Translation Using Conditional Adversarial Networks, it's transplanted from pix2pix.

Result

Step by Step

Download Datasets --- Cityscapes

Sign up, Log in & Download gtFine_trainvaltest.zip & leftImg8bit_trainvaltest.zip from cityscapes

Split Dataset into train, val & test set

    python split_data_sets.py --root [Image Folder] --list [List Folder]  

Note: Run python split_data_sets.py -h for more details.

Combine A & B into a single image

    python combine_A_and_B.py --list [List Path] --save_dir [Save Folder]

Generate list file for train, val & test dataset

	ls train > train.txt
	ls val > val.txt
	ls test > test.txt

Note: Run commands above in folder containing train, val & test subfolder

Train

	python train.py

Note: Run python train.py -h for more options.

Test

	python test.py

Note: Run python test.py -h for more options.

Network Architecture

Generator

U-net

Discriminator

PatchGAN, FOV is determined by n_layers.

Acknowledgments

Code borrows heavily from Chainer: DCGAN.

Alternatives To Chainer Pix2pix
Select To Compare


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 (840,926
Deep Learning (37,790
Artificial Intelligence (19,348
Translation (13,600
Computer Vision (9,250
Generative Adversarial Network (5,281
Adversarial (3,523
Computer Graphics (1,349
Adversarial Networks (898
Chainer (757
Pix2pix (552
Cityscapes (466
Image Translation (341