pytorch-CycleGAN-and-pix2pix
The classic PyTorch implementation of CycleGAN and pix2pix for image-to-image translation
contrastive-unpaired-translation est un projet de image open source, créé par taesungp (taesungp/contrastive-unpaired-translation sur GitHub). Il compte 2 556 étoiles sur GitHub et 452 forks, il est publié sous la licence NOASSERTION et a été mis à jour pour la dernière fois sur GitHub le 5 septembre 2023.
CUT — contrastive unpaired image-to-image translation in PyTorch, faster and lighter than CycleGAN (ECCV 2020)
Gather two unpaired image collections (domains A and B) — e.g. horses and zebras — or download one of the provided datasets; decide CUT vs FastCUT vs single-image SinCUT.
Clone into a folder named CUT, as the README's getting-started shows.
pip install -r requirements.txt (or conda env create -f environment.yml); optionally start a visdom server to watch training.
Download a dataset with the provided script, train with train.py, then generate results with test.py — or skip training using the pretrained models and launcher scripts.
Patchwise contrastive learning ties corresponding patches of input and output together, replacing cycle consistency and its inverse network.
The authors report faster training and lower memory than CycleGAN, with stronger distribution matching in their experiments.
A lighter configuration (no identity loss, higher lambda_NCE) described as using half the GPU memory and training twice as fast as CycleGAN.
Each 'domain' can be just one image, using StyleGAN2-based components adopted in the repo.
Downloadable pretrained checkpoints (Cityscapes, Horse2Zebra, Cat2Dog) with launcher scripts and FID evaluation instructions.
Experiment launchers generate the long train/test command lines for the provided datasets.
Clone CUT into a directory named CUT, as the README shows.
git clone https://github.com/taesungp/contrastive-unpaired-translation.git
cd contrastive-unpaired-translationInstall PyTorch and the other requirements with pip (or use the conda environment file).
pip install -r requirements.txtDownload the example dataset, train CUT, then run the test script.
bash ./datasets/download_cut_dataset.sh grumpifycat
python train.py --dataroot ./datasets/grumpifycat --name grumpycat_CUT --CUT_mode CUT
python test.py --dataroot ./datasets/grumpifycat --name grumpycat_CUT --CUT_mode CUT --phase trainCUT exists because of the work it streamlines: the unpaired translation problem was defined by CycleGAN, in the classic PyTorch codebase that also carries pix2pix — still the implementation most translation projects are measured against.
The authors — Taesung Park, Alexei A. Efros, Richard Zhang and Jun-Yan Zhu (UC Berkeley / Adobe Research) — published it with their ECCV 2020 paper.
The code is public research code; GitHub lists its license as NOASSERTION, so read the repository's license file before reusing it commercially.
No — training and inference run locally in PyTorch on your own GPU.
CycleGAN enforces cycle consistency with a second generator. CUT uses a contrastive PatchNCE loss instead, which the authors show trains faster with less memory; FastCUT is the even lighter option.
Clone, pip install -r requirements.txt, download the grumpifycat dataset, and run the train.py command from the README.
The classic PyTorch implementation of CycleGAN and pix2pix for image-to-image translation
🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.
Unofficial DragGAN implementation: drag points on a GAN image to edit it interactively
Local-first AI e-commerce image suite generator for solo sellers
Modern AI image lab on Pollinations.ai — models, seeds, history, transparency
Desktop image editor with AI effects, built for modern apps
Les autres projets de la catégorie Image avec le plus d'étoiles du catalogue LibreAI — la sélection réaliste d'alternatives si contrastive-unpaired-translation ne vous convient pas.
Stable Diffusion web UI
The node-graph powerhouse for precise, professional AI image and video generation.
High performance self-hosted photo and video management solution
PhotoCraft — a clean-room Photoshop reimplementation in pure Rust: layers, masks, adjustment layers, type, vectors, brushes and real PSD files, offline, MIT / Apache-2.0
Focus on prompting and generating
Projets de la catégorie Image proches dans le catalogue, les plus proches en étoiles de contrastive-unpaired-translation — continuez à explorer de part et d'autre.
Generate clean 2D game sprites and animation atlases from one drawing — a Codex/Claude skill and Python CLI
Turn ComfyUI node workflows into runnable Python scripts you can automate and rerun anywhere.
InfiniteYou (InfU) — flexible photo recrafting on FLUX that preserves your identity (ICCV 2025 Highlight)
Extract clean line sketches from anime art, illustrations, and manga with a pretrained GAN model.
FLUX, Stable Diffusion, SDXL, SD3, LoRA, Fine Tuning, DreamBooth, Training, Automatic1111, Forge WebUI, SwarmUI, DeepFake, TTS, Animation, Text To Video, Tut…
Official front-end implementation of ComfyUI
Gratuit et ouvert : récupérez le code source, mettez une étoile au dépôt et commencez à créer.