All models

pytorch_gan_dualgan_generator

DualGAN translators from PyTorch-GAN: U-shaped generators trained on unpaired images from two domains.

Diffusion and generative · 52 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 (58 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
dualgan
Parameters
41.8M
Operations
52
Framework
PyTorch
Recurrent
No
Published
ICCV 2017
Cited by
2,229 (as of 17 October 2026)
Authors
Zili Yi, Hao Zhang, Ping Tan, Minglun Gong
License
Apache-2.0
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
m8439
Graph hash
678d114a8ba18bbd89a95a7539d3590fa0d1ffbc3fcf963fbb2f9767239b728b
Skeleton hash
ba8c42713203da8f9988825590e128289e58114afb4a24ebbb1b89ab52d3177b
Architecture hash
ba64d6c5d5df7d479745ddd75efe5fec3cc632d41ab8cb42c7f2884b26b8f2f8
Diagram SHA-256
393ae84cfea4c83906a98f43162f0063568af3070c7af485167ac0f639cff6c4
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

DualGAN trains image translators from two sets of unlabeled images, one per domain, without any paired examples. The primal GAN learns to translate images from domain U to domain V while the dual GAN learns to invert the task. The closed loop lets an image from either domain be translated and then reconstructed, so reconstruction error becomes the training signal. The authors took the idea from dual learning in natural language translation. They note that CycleGAN, concurrent work, proposes the same idea for unpaired translation.

The generators are U-shaped, with skip connections between mirrored downsampling and upsampling layers so low-level structure passes straight from input to output. No explicit noise vector is fed in, and randomness comes only from dropout applied at both training and test time. The discriminators are Markovian PatchGANs that model images only at the patch level. The adversarial loss follows the format advocated by Wasserstein GAN rather than the sigmoid cross-entropy of the original GAN.

On some tasks DualGAN even matched or slightly beat a conditional GAN trained on fully labeled data. The authors' own code runs on TensorFlow 1.0 or later. The captured member comes from the PyTorch-GAN collection, whose author warns that its architectures will not always mirror the ones proposed in the papers.

Key idea. A pair of GANs, primal and dual, whose closed translate-and-reconstruct loop trains image translators from two unlabeled image sets with no paired data.

  • DualGAN
  • dual GAN
  • unsupervised dual learning
  • unpaired image-to-image translation
  • image translation
  • U-Net generator
  • CycleGAN
  • PyTorch-GAN

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

Cite the paper

@misc{yi2018dualganunsupervisedduallearning,
      title={DualGAN: Unsupervised Dual Learning for Image-to-Image Translation}, 
      author={Zili Yi and Hao Zhang and Ping Tan and Minglun Gong},
      year={2018},
      eprint={1704.02510},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1704.02510}, 
}