All models

stargan_v1_generator

The StarGAN generator translates a face into any target domain from one network, conditioned on a domain 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,156 (as of 18 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
m10263
Graph hash
88a1eeb31ec1f767582026a14b7630905785618caea8ce2aa7fcc976bb1d91b7
Skeleton hash
c196fafb9c302f0e173b189eae6bc03222a2efcdc34abe8b7f6e1a79e8b1ac1b
Architecture hash
8e4b9cecbc012d5a802c137e30038ab581e44d287f5941e8a873efd15399d20b
Diagram SHA-256
01ab79b65aaf6ad12b4231d614d27e850d90098961ae2ad03829df3503952517
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

StarGAN is a generative adversarial network that performs image-to-image translation across multiple domains, hair colours or facial expressions for instance, using only a single model. Earlier approaches had limited scalability and robustness beyond two domains, because a separate model had to be built for every pair of image domains. What is traced here is the generator, the network that takes in both an image and domain information and learns to flexibly translate the image into the corresponding domain.

The idea is simple: instead of learning one fixed translation such as black-to-blond hair, the generator is fed the image together with a domain label. During training that target label is drawn at random, so the model learns to translate an input image into any target domain. The label is spatially replicated and concatenated with the input image. A single discriminator with an auxiliary classifier judges both whether an image is real and which domain it belongs to. A cycle consistency term asks the generator to reconstruct the original image from the fake one given the original domain label. A mask vector appended to the label lets the network train on CelebA and RaFD jointly by ignoring labels a given dataset does not provide.

Architecturally the generator is adapted from CycleGAN: two stride-two convolutions for downsampling, six residual blocks, and two stride-two transposed convolutions for upsampling. Instance normalization is used in the generator but no normalization in the discriminator. The official PyTorch code trains on CelebA at image size 128 with c_dim 5. Those five selected attributes are Black_Hair, Blond_Hair, Brown_Hair, Male and Young. The paper demonstrates the approach on facial attribute transfer and facial expression synthesis.

Key idea. StarGAN learns the mappings among multiple domains with a single generator and a single discriminator by conditioning the generator on a target domain label. A mask vector method lets it control all available domain labels while training across datasets with different label sets.

  • StarGAN
  • stargan v1 generator
  • star generative adversarial network
  • multi-domain image-to-image translation
  • image to image translation
  • facial attribute transfer
  • facial expression synthesis
  • CelebA
  • RaFD
  • GAN generator
  • domain label
  • mask vector

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}, 
}