资源算法pix2pix-tensorflow

pix2pix-tensorflow

2020-01-09 | |  60 |   0 |   0

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:

图片.png

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.gitcd 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:

图片.png

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


上一篇:DIRNet-PyTorch

下一篇:chainer-pix2pix

用户评价
全部评价

热门资源

  • DuReader_QANet_BiDAF

    Machine Reading Comprehension on DuReader Usin...

  • ETD_cataloguing_a...

    ETD catalouging project using allennlp

  • allennlp_extras

    allennlp_extras Some utilities build on top of...

  • allennlp-dureader

    An Apache 2.0 NLP research library, built on Py...

  • honk-honk-motherf...

    honk-honk-motherfucker