Update to fix code.
#9
by
norihiro
- opened
README.md
CHANGED
@@ -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,10 +55,10 @@ 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")
|
62 |
```
|
63 |
|
64 |
## Results
|
|
|
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[0], "shark_3d.gif")
|
62 |
```
|
63 |
|
64 |
## Results
|