资源算法Improved CycleGAN

Improved CycleGAN

2019-09-10 | |  101 |   0 |   0

CycleGAN_Tensorlayer

Re-implement CycleGAN in TensorLayer

  • Original CycleGAN

  • Improved CycleGAN with resize-convolution

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:

generator.png

The discriminator process:

discriminator.png

Result Improvement

  • Data augmentation

  • Resize convolution[4]

  • Instance normalization[5]

data augmentation:

data_augmentation.png

Instance normalizationcomparision by original paper https://arxiv.org/abs/1607.08022:

instance_norm.png

Resize convolution (Remove Checkerboard Artifacts):

compare1.png

compare2.png

Final Results:

result.png

result2.png

Reference:

  • [1] Original Paper: https://arxiv.org/pdf/1703.10593.pdf

  • [2] Original implement in Torch: https://github.com/junyanz/CycleGAN/

  • [3] TensorLayer by HaoDong: https://github.com/zsdonghao/tensorlayer

  • [4] Resize Convolution: https://distill.pub/2016/deconv-checkerboard/

  • [5] Instance Normalization: https://arxiv.org/abs/1607.08022


上一篇:MobileNetV2(Gluon:star)

下一篇:Pytorch Poetry Generation

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...