# OpenAI Text To 3D Models | 2023 ⭐️

**URL:** <https://onehack.st/t/openai-text-to-3d-models-2023/248739>\
**Category:** Tools & Scripts\
**Tags:** tools, freebies, tips-tricks, ai\
**Created:** [June 17, 2023, 9:09pm UTC](https://onehack.st/t/openai-text-to-3d-models-2023/248739 "2023-06-17T21:09:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prometheus](https://onehack.st/user_avatar/onehack.st/prometheus/32/34950_2.png) [@Prometheus](https://onehack.st/u/Prometheus)\
**Post date:** [June 17, 2023, 9:09pm UTC](https://onehack.st/t/openai-text-to-3d-models-2023/248739/1 "2023-06-17T21:09:04Z")

</div>

OpenAI Text To 3D Models | 2023 ⭐

# Shap-E

This is the official code and model release for [Shap-E: Generating Conditional 3D Implicit Functions](https://arxiv.org/abs/2305.02463).

- See [Usage](https://github.com/openai/shap-e#usage) for guidance on how to use this repository.
- See [Samples](https://github.com/openai/shap-e#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](https://github.com/openai/shap-e/blob/main/samples.md).

| [![A chair that looks like an avocado](https://github.com/openai/shap-e/raw/main/samples/a_chair_that_looks_like_an_avocado/2.gif)](https://github.com/openai/shap-e/blob/main/samples/a_chair_that_looks_like_an_avocado/2.gif) | [![An airplane that looks like a banana](https://github.com/openai/shap-e/raw/main/samples/an_airplane_that_looks_like_a_banana/3.gif)](https://github.com/openai/shap-e/blob/main/samples/an_airplane_that_looks_like_a_banana/3.gif) | [![A spaceship](https://github.com/openai/shap-e/raw/main/samples/a_spaceship/0.gif)](https://github.com/openai/shap-e/blob/main/samples/a_spaceship/0.gif) |
| --- | --- | --- |
| A chair that looks | | |
| like an avocado | An airplane that looks | |
| like a banana | A spaceship | |
| [![A birthday cupcake](https://github.com/openai/shap-e/raw/main/samples/a_birthday_cupcake/3.gif)](https://github.com/openai/shap-e/blob/main/samples/a_birthday_cupcake/3.gif) | [![A chair that looks like a tree](https://github.com/openai/shap-e/raw/main/samples/a_chair_that_looks_like_a_tree/2.gif)](https://github.com/openai/shap-e/blob/main/samples/a_chair_that_looks_like_a_tree/2.gif) | [![A green boot](https://github.com/openai/shap-e/raw/main/samples/a_green_boot/3.gif)](https://github.com/openai/shap-e/blob/main/samples/a_green_boot/3.gif) |
| A birthday cupcake | A chair that looks | |
| like a tree | A green boot | |
| [![A penguin](https://github.com/openai/shap-e/raw/main/samples/a_penguin/1.gif)](https://github.com/openai/shap-e/blob/main/samples/a_penguin/1.gif) | [![Ube ice cream cone](https://github.com/openai/shap-e/raw/main/samples/ube_ice_cream_cone/3.gif)](https://github.com/openai/shap-e/blob/main/samples/ube_ice_cream_cone/3.gif) | [![A bowl of vegetables](https://github.com/openai/shap-e/raw/main/samples/a_bowl_of_vegetables/2.gif)](https://github.com/openai/shap-e/blob/main/samples/a_bowl_of_vegetables/2.gif) |
| 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](https://github.com/openai/shap-e/blob/main/shap_e/examples/sample_text_to_3d.ipynb) - sample a 3D model, conditioned on a text prompt.
- [sample\_image\_to\_3d.ipynb](https://github.com/openai/shap-e/blob/main/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](https://github.com/openai/shap-e/blob/main/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.

## GitHub:

[https://github.com/openai/shap-e](https://github.com/openai/shap-e)
