rupeshs commited on
Commit
d12d364
1 Parent(s): e44ece1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -1
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
- ![Sample](./sample.png)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  You can use this model with [FastSD CPU](https://github.com/rupeshs/fastsdcpu).
18
 
19
+ ![Sample](./sample.png)
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
+ ```