ShapE_PriorTransformer
The Shap-E diffusion prior: a Point-E style transformer that denoises 1024-token latents into 3D implicit functions.
Diffusion and generative · 608 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
- 315.7M
- Operations
- 608
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2023
- Cited by
- 904 (as of 27 November 2026)
- Authors
- Heewoo Jun, Alex Nichol
- Source
- diffusers 0.38.0
- 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
- m2798
- Graph hash
- c6ad5facd19fd24197bd1d72878607a68e837b9ddd673c52f3c75f6168a0650a
- Skeleton hash
- 172e8f6f3e92b808ed31e9d74e0b94c7d0912bbe667646f29006c30bd1e8307c
- Architecture hash
- 479aff1396a96b8b63f8ff2a3e2e9799cf53a4c7905a3b75f7c064a6c033b48f
- Diagram SHA-256
- c5b301b7831d76308b9d9a75909112c69be9cec3d6307aadb020626450706c0c
- 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
Shap-E is a conditional generative model for 3D assets. Rather than emitting one fixed representation, it directly generates the parameters of implicit functions that can be rendered as both textured meshes and neural radiance fields. Training runs in two stages: an encoder that deterministically maps 3D assets into the parameters of an implicit function, then a conditional diffusion model on the encoder's outputs. The member traced here is that second stage, the diffusion prior trained on a dataset of latents obtained by applying the encoder to the dataset.
The prior adopts the transformer-based diffusion architecture of Point·E, but replaces point clouds with sequences of latent vectors. Each latent is a 1024 by 1024 array fed to the transformer as 1024 tokens, one per row of the MLP weight matrices it will become. For text conditioning a single token holding the CLIP text embedding is prepended to the context; for images it is a 256-token CLIP embedding sequence. To support classifier-free guidance, the conditioning information is randomly set to zero during training with probability 0.1. Unlike Point·E, the model directly predicts the denoised sample x0, which is algebraically equivalent to predicting the noise but produced more coherent samples in early experiments.
Compared to Point-E, an explicit generative model over point clouds, Shap-E converges faster and reaches comparable or better sample quality despite modeling a higher-dimensional, multi-representation output space. The comparison is a clean one because the latent diffusion model shares the same architecture, training dataset and conditioning modes as Point·E. The text-conditional model begins to get worse on evaluations before the end of training, which the authors argue is likely due to overfitting to the text captions. It also has a limited ability to compose concepts, struggling to bind multiple attributes to different objects or to produce the right number of objects beyond two. Each text-conditional sample takes roughly 13 seconds to generate on a single NVIDIA V100 GPU, with no separate text-to-image model required.
Key idea. Shap-E trains a conditional diffusion prior over encoder-produced latents that decode into implicit functions renderable as both textured meshes and neural radiance fields.
- shap-e
- shap e
- shape
- prior transformer
- priortransformer
- diffusion prior
- text-to-3d
- image-to-3d
- 3d generation
- implicit function
- nerf
- textured mesh
- latent diffusion
- point-e
- openai shap-e
- diffusers
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{jun2023shapegeneratingconditional3d,
title={Shap-E: Generating Conditional 3D Implicit Functions},
author={Heewoo Jun and Alex Nichol},
year={2023},
eprint={2305.02463},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2305.02463},
}