fixed "repo", "size" not defined issue, branch @shap-ee doens't existed
#14
by
MichaelWei
- opened
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,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
|
|
|
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[0], "shark_3d.gif")
|
62 |
```
|
63 |
|
64 |
## Results
|