update readme
Browse files
README.md
CHANGED
@@ -1,3 +1,21 @@
|
|
1 |
---
|
2 |
license: openrail++
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: openrail++
|
3 |
+
tags:
|
4 |
+
- stable-diffusion
|
5 |
+
- text-to-image
|
6 |
+
- openvino
|
7 |
---
|
8 |
+
|
9 |
+
# Stable Diffusion v2-1 Model for OpenVINO
|
10 |
+
A fork of [stabilityai/stable-diffusion-2-1](https://huggingface.co/stabilityai/stable-diffusion-2-1) exported to OpenVINO using [Optimum Intel](https://github.com/huggingface/optimum-intel) 🤗
|
11 |
+
|
12 |
+
```python
|
13 |
+
from optimum.intel.openvino import OVStableDiffusionPipeline
|
14 |
+
|
15 |
+
model_id = "echarlaix/stable-diffusion-2-1-openvino"
|
16 |
+
pipe = OVStableDiffusionPipeline.from_pretrained(model_id)
|
17 |
+
prompt = "sailing ship in storm by Rembrandt"
|
18 |
+
image = pipe(prompt).images[0]
|
19 |
+
|
20 |
+
image.save("sailing_ship.png")
|
21 |
+
```
|