#116 · Primary category: Image Generation

contrastive-unpaired-translation

computer-graphics computer-vision computervision cyclegan deeplearning gans generative-adversarial-network image-generation image-manipulation pytorch

Contrastive unpaired image-to-image translation, faster and lighter training than cyclegan (ECCV 2020, in PyTorch)

Project last updated:09/05/23

GitHub Stars

2.5K

Forks

451

Contributors

4

License

Other

Why we included this project

This is the PyTorch reference for CUT, the ECCV 2020 unpaired image-to-image translation method that swaps CycleGAN's cycle-consistency losses for a patchwise contrastive (PatchNCE) objective. Dropping those losses makes training faster and easier on GPU memory, which matters when you're translating between large photo collections that have no paired examples. There's also a single-image mode where each 'domain' is just one picture, handy for stylizing a single source image. If you work with GANs, the code is straightforward to run for style transfer, domain adaptation, or relabeling datasets. Pretrained weights and launcher scripts for common datasets let you reproduce the paper's results and reuse the generator as a base for your own pipeline.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category