GitXplorerGitXplorer
y

pix2pix-tensorflow

public
939 stars
299 forks
28 issues

Commits

List of commits on branch master.
Verified
ba40020706ad3a1fbefa1da7bc7a05b7b031fb9e

Update README.md

yyenchenlin committed 5 years ago
Unverified
9895f7233afc639e0fbe4e4262367266392937ab

Add LICENSE

yyenchenlin committed 7 years ago
Verified
746c2bcd5b87dec6301559f46db69904b1bcbc50

Update README.md

yyenchenlin committed 7 years ago
Unverified
1d167b0baa9461471b4043129d3efa06d695e7de

Merge pull request #27 from gijzelaerr/tf10

yyenchenlin committed 8 years ago
Unverified
5e5ad73663b282336b3537e71ae05cf4425f18aa

add requirements file

ggijzelaerr committed 8 years ago
Unverified
971742b803b385a8532b26530c191e29759c748a

tf.train.SummaryWriter renamed

ggijzelaerr committed 8 years ago

README

The README file for this repository.

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 git@github.com: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