A keras implementation of CAGAN and its variants.
The Conditional Analogy GAN: Swapping Fashion Articles on People Images
Nikolay Jetchev, Urs Bergmann
- CAGAN: keras implementation of CAGAN
- CAGAN-stackGANv2-256-covar-refiner-mixup: A CAGAN combines with StackGAN-v2.
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.
- python 3
- keras 2.1.1
- TensorFlow 1.2.0
Code borrows from tjwei and titu1994. The generative network is adopted from CycleGAN with Instance Normalization.