Update README.md
Browse files
README.md
CHANGED
@@ -8,9 +8,37 @@ tags:
|
|
8 |
- sdturbo
|
9 |
---
|
10 |
|
11 |
-
The SD Turbo model is converted to OpenVINO for
|
12 |
|
13 |
Original Model : [sd-turbo](https://huggingface.co/stabilityai/sd-turbo)
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
## License
|
16 |
The SD Turbo Model is licensed under the Stability AI Non-Commercial Research Community License, Copyright (c) Stability AI Ltd. All Rights Reserved.
|
|
|
8 |
- sdturbo
|
9 |
---
|
10 |
|
11 |
+
The SD Turbo model is converted to OpenVINO for fast inference on CPU. This model is intended for research purpose only.
|
12 |
|
13 |
Original Model : [sd-turbo](https://huggingface.co/stabilityai/sd-turbo)
|
14 |
|
15 |
+
You can use this model with [FastSD CPU](https://github.com/rupeshs/fastsdcpu).
|
16 |
+
|
17 |
+
To run the model yourself, you can leverage the 🧨 Diffusers library:
|
18 |
+
|
19 |
+
1. Install the dependencies:
|
20 |
+
```
|
21 |
+
pip install optimum-intel openvino diffusers onnx
|
22 |
+
```
|
23 |
+
2. Run the model:
|
24 |
+
```py
|
25 |
+
from optimum.intel.openvino.modeling_diffusion import OVStableDiffusionPipeline
|
26 |
+
|
27 |
+
pipeline = OVStableDiffusionPipeline.from_pretrained(
|
28 |
+
"rupeshs/sd-turbo-openvino",
|
29 |
+
ov_config={"CACHE_DIR": ""},
|
30 |
+
)
|
31 |
+
prompt = "Self-portrait,a beautiful cyborg with golden hair, 8k"
|
32 |
+
|
33 |
+
images = pipeline(
|
34 |
+
prompt=prompt,
|
35 |
+
width=512,
|
36 |
+
height=512,
|
37 |
+
num_inference_steps=4,
|
38 |
+
guidance_scale=1.0,
|
39 |
+
).images
|
40 |
+
images[0].save("out_image.png")
|
41 |
+
```
|
42 |
+
|
43 |
## License
|
44 |
The SD Turbo Model is licensed under the Stability AI Non-Commercial Research Community License, Copyright (c) Stability AI Ltd. All Rights Reserved.
|