[P] 图片到图片转换 Improved CycleGAN with Resize-Convolution

1,004 阅读1分钟
原文链接: github.com

Re-implement CycleGAN in Tensorlayer

Prerequisites:

  • Tensorlayer
  • TensorFlow
  • Python

Run:

CUDA_VISIBLE_DEVICES=0 python main.py 

(if datasets are collected by yourself, you can use dataset_clean.py or dataset_crop.py to pre-process images)

Theory:

The generator process:

Image text

The discriminator process:

Image text

Result Improvement

  • Data augmentation
  • Resize convolution[4]
  • Instance normalization[5]

data augmentation:

Image text

Instance normalization(comparision by original paper arxiv.org/abs/1607.08…:

Image text

Resize convolution (Remove Checkerboard Artifacts):

Image text

Image text

Final Results:

Image text

Image text

Reference: