Instructions to use openai/shap-e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use openai/shap-e with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("openai/shap-e", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
#4
by sayakpaul HF Staff - opened
README.md
CHANGED
|
@@ -77,8 +77,8 @@ gif_path = export_to_gif(images, "shark_3d.gif")
|
|
| 77 |
</td>
|
| 78 |
</tr>
|
| 79 |
<tr>
|
| 80 |
-
<td align="center">A shark</td>
|
| 81 |
<td align="center">A bird</td>
|
|
|
|
| 82 |
<td align="center">A bowl of vegetables</td>
|
| 83 |
</tr>
|
| 84 |
</tr>
|
|
|
|
| 77 |
</td>
|
| 78 |
</tr>
|
| 79 |
<tr>
|
|
|
|
| 80 |
<td align="center">A bird</td>
|
| 81 |
+
<td align="center">A shark</td>
|
| 82 |
<td align="center">A bowl of vegetables</td>
|
| 83 |
</tr>
|
| 84 |
</tr>
|