Update README.md
Browse files
README.md
CHANGED
@@ -13,13 +13,9 @@ library_name: diffusers
|
|
13 |
```
|
14 |
from optimum.neuron import NeuronStableDiffusionXLPipeline
|
15 |
|
16 |
-
model_id = "dminhk/stable-diffusion-xl-base-1.0-neuronx"
|
17 |
-
input_shapes = {"batch_size": 1, "height": 1024, "width": 1024}
|
18 |
-
|
19 |
-
stable_diffusion_xl = NeuronStableDiffusionXLPipeline.from_pretrained(model_id, export=False, **input_shapes, device_ids=[0,1])
|
20 |
-
```
|
21 |
-
|
22 |
-
```
|
23 |
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
|
|
|
|
|
|
24 |
image = stable_diffusion_xl(prompt).images[0]
|
25 |
```
|
|
|
13 |
```
|
14 |
from optimum.neuron import NeuronStableDiffusionXLPipeline
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
|
17 |
+
stable_diffusion_xl = NeuronStableDiffusionXLPipeline.from_pretrained(
|
18 |
+
model_id="dminhk/stable-diffusion-xl-base-1.0-neuronx", device_ids=[0, 1]
|
19 |
+
)
|
20 |
image = stable_diffusion_xl(prompt).images[0]
|
21 |
```
|