Update README.md
Browse files
README.md
CHANGED
|
@@ -16,4 +16,30 @@ Original Model : [Lykon/dreamshaper-7](https://huggingface.co/Lykon/dreamshaper-
|
|
| 16 |
|
| 17 |
You can use this model with [FastSD CPU](https://github.com/rupeshs/fastsdcpu).
|
| 18 |
|
| 19 |
-

|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
You can use this model with [FastSD CPU](https://github.com/rupeshs/fastsdcpu).
|
| 18 |
|
| 19 |
+

|
| 20 |
+
|
| 21 |
+
To run the model yourself, you can leverage the 🧨 Diffusers library:
|
| 22 |
+
|
| 23 |
+
1. Install the dependencies:
|
| 24 |
+
```
|
| 25 |
+
pip install optimum-intel openvino diffusers onnx
|
| 26 |
+
```
|
| 27 |
+
2. Run the model:
|
| 28 |
+
```py
|
| 29 |
+
from optimum.intel.openvino.modeling_diffusion import OVStableDiffusionPipeline
|
| 30 |
+
|
| 31 |
+
pipeline = OVStableDiffusionPipeline.from_pretrained(
|
| 32 |
+
"rupeshs/LCM-dreamshaper-v7-openvino",
|
| 33 |
+
ov_config={"CACHE_DIR": ""},
|
| 34 |
+
)
|
| 35 |
+
prompt = "Self-portrait,a beautiful cyborg with golden hair, 8k"
|
| 36 |
+
|
| 37 |
+
images = pipeline(
|
| 38 |
+
prompt=prompt,
|
| 39 |
+
width=512,
|
| 40 |
+
height=512,
|
| 41 |
+
num_inference_steps=4,
|
| 42 |
+
guidance_scale=1.0,
|
| 43 |
+
).images
|
| 44 |
+
images[0].save("out_image.png")
|
| 45 |
+
```
|