/Conditional-Analogy-GAN-keras

keras implementation of CAGAN and its variants. The Conditional Analogy GAN: Swapping Fashion Articles on People Images

Primary LanguageJupyter Notebook

Conditional-Analogy-GAN-keras

A keras implementation of CAGAN and its variants.

The Conditional Analogy GAN: Swapping Fashion Articles on People Images
Nikolay Jetchev, Urs Bergmann

Description

Dataset directory has hierarchy as below.

./imgs
  /1 
    filename01_1.jpg
    filename02_1.jpg
    filename03_1.jpg
    ...
  /5 
    filename01_5.jpg
    filename02_5.jpg
    filename03_5.jpg
    ...

Folder ./imgs/1/ contains human images and ./imgs/5/ contains stand alone cloth images. A human/article pair should has same filename followed by _1 and _5 separately. Please refer to Load Iamges section in jupyter notebooks.

Requirements

  • python 3
  • keras 2.1.1
  • TensorFlow 1.2.0

Acknowledgments

Code borrows from tjwei and titu1994. The generative network is adopted from CycleGAN with Instance Normalization.