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

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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

2025-12-09