Views
No views yet
1pip install transformers accelerate -q
2pip install git+https://github.com/huggingface/diffusers@@shap-ee1import torch
2from diffusers import ShapEPipeline
3from diffusers.utils import export_to_gif
4
5
6ckpt_id = "openai/shap-e"
7pipe = ShapEPipeline.from_pretrained(repo).to("cuda")
8
9
10guidance_scale = 15.0
11prompt = "a shark"
12images = pipe(
13 prompt,
14 guidance_scale=guidance_scale,
15 num_inference_steps=64,
16 size=256,
17).images
18
19gif_path = export_to_gif(images, "shark_3d.gif")
![]() |
![]() |
![]() |
| A bird | A shark | A bowl of vegetables |
1@misc{jun2023shape,
2 title={Shap-E: Generating Conditional 3D Implicit Functions},
3 author={Heewoo Jun and Alex Nichol},
4 year={2023},
5 eprint={2305.02463},
6 archivePrefix={arXiv},
7 primaryClass={cs.CV}
8}