Update README.md
Browse files
README.md
CHANGED
@@ -2,10 +2,30 @@
|
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
SD1.5 LDM: https://huggingface.co/runwayml/stable-diffusion-v1-5
|
|
|
5 |
SD1.5 LCM-Lora: https://huggingface.co/latent-consistency/lcm-lora-sdv1-5
|
6 |
|
7 |
|
|
|
8 |
SD1.5 model fused with LCM Lora, saved using diffusers .save_pretrained()
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
|
|
11 |
|
|
|
2 |
license: apache-2.0
|
3 |
---
|
4 |
SD1.5 LDM: https://huggingface.co/runwayml/stable-diffusion-v1-5
|
5 |
+
|
6 |
SD1.5 LCM-Lora: https://huggingface.co/latent-consistency/lcm-lora-sdv1-5
|
7 |
|
8 |
|
9 |
+
|
10 |
SD1.5 model fused with LCM Lora, saved using diffusers .save_pretrained()
|
11 |
|
12 |
+
Sample usage:
|
13 |
+
|
14 |
+
```python
|
15 |
+
import torch
|
16 |
+
import os
|
17 |
+
from diffusers import StableDiffusionPipeline
|
18 |
+
|
19 |
+
pipe = StableDiffusionPipeline.from_pretrained("qiacheng/stable-diffusion-v1-5-lcm")
|
20 |
+
|
21 |
+
prompt = "a cat"
|
22 |
+
|
23 |
+
height = 512
|
24 |
+
width = 512
|
25 |
+
steps = 6
|
26 |
+
guidance_scale = 1
|
27 |
+
|
28 |
+
output = pipe(prompt=prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=guidance_scale, output_type="pil")
|
29 |
|
30 |
+
```
|
31 |
|