All models

erik_cyclegan

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

Diffusion and generative · 69 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 (45 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
7.8M
Operations
69
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
m11838
Graph hash
3c581f30e9d4c9d91fc0d29895a4a0702dad01db68313b94438977296298cc03
Skeleton hash
d3091540fb77d1b2db85690fe6e420fc017fbdfd67ce72349e87c0b5b918e755
Architecture hash
0052e12920bacb6b978329d88b5fc219c3c2016e496db612d22d0c0df6ec13d0
Diagram SHA-256
bc87857df8fa001c44db5c22a91fb0237e4d19a6c633ab3275615b2e58ef4ea9
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}, 
}