PyTorch implementations of CycleGAN and pix2pix for image-to-image translation
open sourceBSD-2-Clausefree
This is the PyTorch implementation of CycleGAN (unpaired image-to-image translation) and pix2pix (paired), by Jun-Yan Zhu and Taesung Park, with training and test scripts, pretrained models, templates for custom models and datasets, and multi-GPU training. A 2025 update added Python 3.11 and PyTorch 2.4 support. Its makers point to their newer CUT (contrastive unpaired translation) model for faster, lighter unpaired training.
Problems it solves
- turn photos into paintings with a GAN
- train an image-to-image translation model on my own dataset
- convert sketches to images with pix2pix
Features
- CycleGAN unpaired translation
- pix2pix paired translation
- pretrained models
- custom model and dataset templates
- multi-GPU training with DDP
