
erik_stargan
Diffusion and generative56 ops8.4M params
The StarGAN generator translates a face into any target domain from one network, conditioned on a domain label.
Diffusion and generative · 56 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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},
}