CycleGAN and pix2pix in PyTorch repository is a PyTorch implementation of two influential image-to-image translation frameworks: CycleGAN (for unpaired translation) and pix2pix (for paired translation). This repo gives developers and researchers a convenient, modern (PyTorch-based) platform to train and test these methods — supporting both paired datasets (input to output) and unpaired datasets (domain-to-domain) with minimal changes. The code supports standard training and inference pipelines, and as of recent updates, compatibility with the latest Python and PyTorch versions (e.g. Python 3.11, PyTorch 2.4) as well as support for distributed/multi-GPU training for scalable workflows. Because of its flexibility, users can apply it to many tasks: e.g. style transfer between domains (e.g. season changes, art-to-photo, etc.), mapping sketches/edges to real images, image colorization, day-to-night, photo enhancement, and more.

Features

  • Supports both paired (pix2pix) and unpaired (CycleGAN) image-to-image translation
  • PyTorch + CUDA + GPU/multi-GPU (DDP) support for scalable training and inference
  • Templates and dataset-structure guidance for custom datasets (trainA/B, testA/B, etc.)
  • Configurable training — models, hyperparameters, directions, batch sizes, scheduling, etc.
  • Works for a wide variety of tasks: style transfer, colorization, domain transfer, maps ↔ photos, edges ↔ images, etc.
  • Pretrained models available for common translations (e.g. horse2zebra, edges2shoes) for quick testing

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow CycleGAN and pix2pix in PyTorch

CycleGAN and pix2pix in PyTorch Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of CycleGAN and pix2pix in PyTorch!

Additional Project Details

Operating Systems

Linux

Programming Language

Python

Related Categories

Python Machine Translation Software

Registered

3 days ago