MCPcopy
hub / github.com/openai/shap-e

github.com/openai/shap-e @main sqlite

repository ↗ · DeepWiki ↗
683 symbols 2,259 edges 69 files 211 documented · 31%
README

Shap-E

This is the official code and model release for Shap-E: Generating Conditional 3D Implicit Functions.

  • See Usage for guidance on how to use this repository.
  • See Samples for examples of what our text-conditional model can generate.

Samples

Here are some highlighted samples from our text-conditional model. For random samples on selected prompts, see samples.md.

A chair that looks like an avocado An airplane that looks like a banana A spaceship
A chair that looks like an avocado An airplane that looks like a banana A spaceship
A birthday cupcake A chair that looks like a tree A green boot
A birthday cupcake A chair that looks like a tree A green boot
A penguin Ube ice cream cone A bowl of vegetables
A penguin Ube ice cream cone A bowl of vegetables
# Usage Install with `pip install -e .`. To get started with examples, see the following notebooks: * [sample_text_to_3d.ipynb](shap_e/examples/sample_text_to_3d.ipynb) - sample a 3D model, conditioned on a text prompt. * [sample_image_to_3d.ipynb](shap_e/examples/sample_image_to_3d.ipynb) - sample a 3D model, conditioned on a synthetic view image. To get the best result, you should remove background from the input image. * [encode_model.ipynb](shap_e/examples/encode_model.ipynb) - loads a 3D model or a trimesh, creates a batch of multiview renders and a point cloud, encodes them into a latent, and renders it back. For this to work, install Blender version 3.3.1 or higher, and set the environment variable `BLENDER_PATH` to the path of the Blender executable.

Core symbols most depended-on inside this repo

to
called by 93
shap_e/rendering/raycast/types.py
from_numpy
called by 33
shap_e/rendering/raycast/types.py
_extract_into_tensor
called by 26
shap_e/diffusion/gaussian_diffusion.py
subdict
called by 26
shap_e/models/nn/meta.py
update
called by 20
shap_e/models/nn/meta.py
copy
called by 18
shap_e/models/query.py
get_act
called by 12
shap_e/models/nn/ops.py
load
called by 11
shap_e/rendering/mesh.py

Shape

Method 377
Function 194
Class 112

Languages

Python100%

Modules by API surface

shap_e/diffusion/gaussian_diffusion.py47 symbols
shap_e/models/transmitter/channels_encoder.py38 symbols
shap_e/models/nn/ops.py38 symbols
shap_e/rendering/blender/blender_script.py37 symbols
shap_e/models/generation/transformer.py36 symbols
shap_e/models/transmitter/base.py25 symbols
shap_e/models/transmitter/bottleneck.py24 symbols
shap_e/rendering/view_data.py23 symbols
shap_e/diffusion/k_diffusion.py23 symbols
shap_e/models/generation/pretrained_clip.py21 symbols
shap_e/models/nerf/ray.py20 symbols
shap_e/models/transmitter/pc_encoder.py19 symbols

For agents

$ claude mcp add shap-e \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact