stylesdf_generator
A SIREN volume renderer hands 64x64 features to a StyleGAN2 decoder for 3D-consistent faces.
Diffusion and generative · 499 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
- 7.7M
- Operations
- 499
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2022
- Cited by
- 245 (as of 17 October 2026)
- Authors
- Roy Or-El, Xuan Luo, Mengyi Shan and others
- Source
- GitHub: royorel/StyleSDF
- 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
- m10338
- Graph hash
- c92ba8051404ae8f8b45f8a63142b3ffd14d2506ae2b29a080b4ef0565ebd709
- Skeleton hash
- d0158f442ed8fe731ac432936a4eaba1c2dfe2effd6ebb7ff848a000060cba14
- Architecture hash
- ea44b1bd735eb25330fa639a7e648d6ee8dd72d42971d9ff2dc01e7b79cf3911
- Diagram SHA-256
- c912fb905704c373f709ef5577aea5558f2d530874cd29a8ab32277b078193b1
- 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
StyleSDF is a 3D-aware GAN that generates both a high-resolution image and a 3D shape, and it is trained on single-view RGB data only. It merges an SDF-based 3D representation with a style-based 2D generator: an implicit network renders low-resolution feature maps, and the style-based network turns them into view-consistent 1024x1024 images. Because the SDF defines detailed 3D surfaces, the volume rendering stays consistent across views.
The volume renderer mostly matches that of Pi-GAN, with a three-layer mapping MLP producing a frequency modulation and phase shift for each layer. The rendering network itself is eight shared modulated fully connected layers with SIREN activation. It then splits into an SDF path, a single fully connected layer, and a color path. Rendering happens at low resolution: 64 by 64 feature maps and color images come out of the volume rendering step. To reach high resolution, the authors truncate the early layers of the StyleGAN2 generator up to its 64x64 layer and feed it the renderer's 64 by 64 feature maps. They also cut StyleGAN2's mapping network from eight layers to five and feed it the w code from the renderer's own mapping network instead of z.
The split gives each part a job: the volume renderer learns the geometry, disentangles pose from appearance and allows full control of the camera position at inference. The StyleGAN2 generator upsamples the low-resolution features, adds high-frequency detail and mimics light transport effects such as subsurface scattering and inter-reflections. Training is two-stage: first the SDF-based volume renderer alone, then, with the renderer frozen, the StyleGAN generator. The renderer's low-resolution color image goes to a discriminator identical to the Pi-GAN discriminator for supervision. The official PyTorch code was tested on PyTorch 1.9.0, PyTorch3D 0.6.1 and torchvision 0.10.0. It ships a model pre-trained on FFHQ for human faces and one pre-trained on AFHQ for animal faces.
Key idea. Merging an SDF-based 3D representation with a style-based 2D generator, so a low-resolution implicit renderer yields view-consistent high-resolution images with detailed 3D surfaces.
- StyleSDF
- StyleSDF generator
- 3D-aware GAN
- signed distance field GAN
- SDF volume renderer
- StyleGAN2 3D
- FFHQ 3D faces
- AFHQ
- Or-El
- High-Resolution 3D-Consistent Image and Geometry Generation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{orel2022stylesdfhighresolution3dconsistentimage,
title={StyleSDF: High-Resolution 3D-Consistent Image and Geometry Generation},
author={Roy Or-El and Xuan Luo and Mengyi Shan and Eli Shechtman and Jeong Joon Park and Ira Kemelmacher-Shlizerman},
year={2022},
eprint={2112.11427},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2112.11427},
}