MichaelWei
commited on
Commit
•
1e72ed4
1
Parent(s):
7bd337a
fixed "repo", "size" not defined issue, branch @shap-ee doens't existed
Browse files
README.md
CHANGED
@@ -34,7 +34,7 @@ First make sure you have installed all the dependencies:
|
|
34 |
|
35 |
```bash
|
36 |
pip install transformers accelerate -q
|
37 |
-
pip install git+https://github.com/huggingface/diffusers
|
38 |
```
|
39 |
|
40 |
Once the dependencies are installed, use the code below:
|
@@ -46,7 +46,7 @@ from diffusers.utils import export_to_gif
|
|
46 |
|
47 |
|
48 |
ckpt_id = "openai/shap-e"
|
49 |
-
pipe = ShapEPipeline.from_pretrained(
|
50 |
|
51 |
|
52 |
guidance_scale = 15.0
|
@@ -55,7 +55,7 @@ images = pipe(
|
|
55 |
prompt,
|
56 |
guidance_scale=guidance_scale,
|
57 |
num_inference_steps=64,
|
58 |
-
|
59 |
).images
|
60 |
|
61 |
gif_path = export_to_gif(images, "shark_3d.gif")
|
|
|
34 |
|
35 |
```bash
|
36 |
pip install transformers accelerate -q
|
37 |
+
pip install git+https://github.com/huggingface/diffusers
|
38 |
```
|
39 |
|
40 |
Once the dependencies are installed, use the code below:
|
|
|
46 |
|
47 |
|
48 |
ckpt_id = "openai/shap-e"
|
49 |
+
pipe = ShapEPipeline.from_pretrained(ckpt_id).to("cuda")
|
50 |
|
51 |
|
52 |
guidance_scale = 15.0
|
|
|
55 |
prompt,
|
56 |
guidance_scale=guidance_scale,
|
57 |
num_inference_steps=64,
|
58 |
+
frame_size=256,
|
59 |
).images
|
60 |
|
61 |
gif_path = export_to_gif(images, "shark_3d.gif")
|