All models

pytorch_gan_stargan_generator

A residual encoder-decoder generator that translates an image into a target domain given as a label.

Diffusion and generative · 56 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 (29 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
StarGAN
Parameters
8.4M
Operations
56
Framework
PyTorch
Recurrent
No
Published
CVPR 2018
Cited by
4,162 (as of 29 October 2026)
Authors
Yunjey Choi, Minje Choi, Munyoung Kim and others
License
MIT
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
m8445
Graph hash
ac3d1d8c2f4d63a99619aaa1f592dfab87633d8ef100ef5ade97238b3b1d305a
Skeleton hash
c196fafb9c302f0e173b189eae6bc03222a2efcdc34abe8b7f6e1a79e8b1ac1b
Architecture hash
85c2d1124dad327e87c90fbbd1f3e7cf8c84b7764d20e128940c23b1f6a7ec32
Diagram SHA-256
88211d1cfaa2a4627043f473b356038c96968f649e7e269a0bf564a0c7836a9f
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

StarGAN is an approach to image-to-image translation that handles multiple domains using only a single model. The paper's argument is about scale: with the approaches it compares against, learning all mappings among k domains means training k(k−1) generators.

Instead of learning one fixed translation, the generator takes both an image and domain information as inputs and learns to translate the image into the corresponding domain. The domain is given as a label, such as a binary or one-hot vector, and the target label is spatially replicated and concatenated with the input image.

The generator network is adapted from CycleGAN: two convolutional layers with a stride of two for downsampling, six residual blocks, and two transposed convolutional layers with a stride of two for upsampling. So that a translated image keeps the content of its input and changes only the domain-related part, the paper applies a cycle consistency loss to the generator. The paper demonstrates the approach on facial attribute transfer and facial expression synthesis.

Key idea. StarGAN learns the mappings among multiple image domains with a single generator and a discriminator, training on images of all domains.

  • StarGAN
  • multi-domain image-to-image translation
  • image-to-image translation
  • facial attribute transfer
  • facial expression synthesis
  • conditional GAN
  • unified GAN

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

Cite the paper

@misc{choi2018starganunifiedgenerativeadversarial,
      title={StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translation}, 
      author={Yunjey Choi and Minje Choi and Munyoung Kim and Jung-Woo Ha and Sunghun Kim and Jaegul Choo},
      year={2018},
      eprint={1711.09020},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1711.09020}, 
}