SingleGAN

Pytorch implementation of our paper: "SingleGAN: Image-to-Image Translation by a Single-Generator Network using Multiple Generative Adversarial Learning".

By leveraging multiple adversarial learning, our model can perform multi-domain and multi-modal image translation with a single generator.

Dependencies

you can install all the dependencies by

pip install -r requirements.txt

Getting Started

Datasets

Testing

In recent experiments, we found that spectral normaliation (SN) can help stabilize the training stage. So we add SN in this implementation. You may need to update your pytorch to 0.4.1 to support SN or use an old version without SN.

Results

Unsupervised cross-domain translation:

#### Unsupervised one-to-many translation:

#### Unsupervised many-to-many translation:

#### Unsupervised multimodal translation: Cat ↔ Dog:

Label ↔ Facade:

Edge ↔ Shoes:

**Please note that this repository contains only the unsupervised version of SingleGAN, you can implement the supervised version by overloading the data loader and replacing the cycle consistency loss with reconstruction loss. See more details in our [paper](https://arxiv.org/abs/1810.04991).** #### bibtex If this work is useful for your research, please consider citing : ``` @inproceedings{yu2018singlegan, title={SingleGAN: Image-to-Image Translation by a Single-Generator Network using Multiple Generative Adversarial Learning}, author={Yu, Xiaoming and Cai, Xing and Ying, Zhenqiang and Li, Thomas and Li, Ge}, booktitle={Asian Conference on Computer Vision}, year={2018} } ``` ### Acknowledgement The code used in this research is inspired by [BicycleGAN](https://github.com/junyanz/BicycleGAN). ### Contact Feel free to reach me if there is any questions (Xiaoming-Yu@pku.edu.cn).