AlexKoff88
commited on
Commit
•
975f235
1
Parent(s):
e73fea1
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
tags:
|
6 |
+
- art
|
7 |
+
---
|
8 |
+
To install the requirements for this demo, do pip install "optimum-intel[openvino, diffusers]".
|
9 |
+
|
10 |
+
```python
|
11 |
+
from optimum.intel.openvino import OVStableDiffusionPipeline
|
12 |
+
|
13 |
+
pipe = OVStableDiffusionPipeline.from_pretrained("OpenVINO/stable-diffusion-1-5-quantized", compile=False)
|
14 |
+
pipe.reshape(batch_size=1, height=512, width=512, num_images_per_prompt=1)
|
15 |
+
pipe.compile()
|
16 |
+
|
17 |
+
prompt = "plant pokemon in jungle"
|
18 |
+
output = pipe(prompt, num_inference_steps=50, output_type="pil")
|
19 |
+
output.images[0].save("result.png")
|
20 |
+
```
|