All models

pytorch_gan_cyclegan_generator

A residual-block generator that translates images from one domain to another, trained without paired examples.

Diffusion and generative · 93 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (28 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
CycleGAN
Parameters
11.4M
Operations
93
Framework
PyTorch
Recurrent
No
Published
ICCV 2017
Cited by
23,595 (as of 29 October 2026)
Authors
Jun-Yan Zhu, Taesung Park, Phillip Isola, Alexei A. Efros
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m8436
Graph hash
e769f113c129ef815b157fceae14f2c7e1aa84449a900916371acc71e63576d9
Skeleton hash
32e0aec2b157f266e1cf97f1e19e28e70b4530075e5c8c04c5201c21e01b6fdb
Architecture hash
93b17c16759f07c73a68e110b4d9dc916ff000b18e77aa96ebbd1a32764604d7
Diagram SHA-256
307f989a75c37ba9dcf808dccc5682e1736a6092e770f4267b87659654f385f0
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

CycleGAN is an approach for learning to translate an image from a source domain to a target domain when no paired training examples are available. An adversarial loss trains a mapping G so that the distribution of its translated images is indistinguishable from the distribution of the target domain.

Because that mapping alone is highly under-constrained, the paper couples it with an inverse mapping F and introduces a cycle consistency loss. The intuition is that translating from one domain to the other and back again should arrive at the starting image. The paper shows qualitative results on tasks where paired training data does not exist, including collection style transfer, object transfiguration, season transfer and photo enhancement.

The generator architecture is adopted from Johnson et al.: three convolutions, several residual blocks, two fractionally-strided convolutions and one convolution that maps features to RGB. It uses instance normalization. The paper uses 6 residual blocks for 128 × 128 images and 9 blocks for 256 × 256 and higher-resolution training images.

Key idea. CycleGAN learns image translation between two domains without paired examples by training two inverse mappings with adversarial losses and a cycle consistency loss.

  • CycleGAN
  • Cycle-Consistent Adversarial Networks
  • unpaired image-to-image translation
  • image-to-image translation
  • cycle consistency
  • style transfer
  • object transfiguration
  • ResNet generator

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhu2020unpairedimagetoimagetranslationusing,
      title={Unpaired Image-to-Image Translation using Cycle-Consistent Adversarial Networks}, 
      author={Jun-Yan Zhu and Taesung Park and Phillip Isola and Alexei A. Efros},
      year={2020},
      eprint={1703.10593},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1703.10593}, 
}