tedigan_inversion_synthesis
The style-based GAN generator, traced as TediGAN's 256-pixel PyTorch face generator.
Diffusion and generative · 506 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.
At a glance
- Parameters
- 29.5M
- Operations
- 506
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR (arXiv 2018)
- Cited by
- 11,664 (as of 18 October 2026)
- Authors
- Tero Karras, Samuli Laine, Timo Aila
- Source
- GitHub: IIGROUP/TediGAN
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m10479
- Graph hash
- 0bc0a5d950ea992d0b88e9a5b62ac33aaa033c64dafcb673861777c3f9c7e41b
- Skeleton hash
- 27da44dd2b952f48e3a09aba2a530afe6cf2cbc432206f0600ba2c9a3ee8af23
- Architecture hash
- b02b798602ad4eae1539eb3aba3a29d12ec7fad0c3cec9bfa6ef77647320fc99
- Diagram SHA-256
- 5468a2b73312a34c1167e116e7dd54749150725318bd3a12bbba15656566f39d
- 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
StyleGAN is a generator architecture for generative adversarial networks that borrows its central idea from style transfer. Instead of feeding the latent code into a first layer, the generator starts from a learned constant and adjusts the style of the image at every convolution layer. The payoff is an automatically learned separation of high-level attributes such as pose and identity from stochastic variation such as freckles and hair.
A non-linear mapping network first turns the input latent code z into an intermediate code w, and learned affine transforms then specialize w into styles that drive adaptive instance normalization after each convolution. In the paper's full configuration the mapping network has 8 layers and the synthesis network 18, two for each resolution. Gaussian noise added after each convolution supplies the stochastic detail. Mixing regularization generates a share of training images from two random latent codes instead of one, which decorrelates neighboring styles. The baseline it grows out of is the Progressive GAN setup, from which the networks and hyperparameters are inherited.
The traced member is the PyTorch StyleGAN generator bundled with TediGAN, a text-guided face generation and manipulation framework whose inversion module maps real images into the latent space of a pretrained StyleGAN. TediGAN's code builds on idinvert, including StyleGAN training and GAN inversion. The pretrained StyleGAN used in most TediGAN experiments generates 256 by 256 images and has 14 layers of intermediate vector, which is the 256-pixel face generator captured here. The StyleGAN paper also introduced the Flickr-Faces-HQ dataset of human faces. TediGAN's README names FFHQ as the dataset for training its face generator.
Key idea. StyleGAN replaces the latent-input generator with a learned constant input, a mapping network to an intermediate latent space, and per-layer style control through adaptive instance normalization, giving scale-specific control of synthesis.
- StyleGAN
- style-based generator
- StyleGAN generator
- TediGAN
- FFHQ
- face generation
- GAN
- AdaIN
- mapping network
- Karras
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{karras2019stylebasedgeneratorarchitecturegenerative,
title={A Style-Based Generator Architecture for Generative Adversarial Networks},
author={Tero Karras and Samuli Laine and Timo Aila},
year={2019},
eprint={1812.04948},
archivePrefix={arXiv},
primaryClass={cs.NE},
url={https://arxiv.org/abs/1812.04948},
}