qiacheng commited on
Commit
334cf6a
·
1 Parent(s): 7148172

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -0
README.md CHANGED
@@ -1,3 +1,30 @@
1
  ---
2
  license: apache-2.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  ---
4
+ SDXL-base-1.0 LDM: https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
5
+
6
+ SDXL-base-1.0 LCM-Lora: https://huggingface.co/latent-consistency/lcm-lora-sdxl
7
+
8
+
9
+
10
+ SDXL model fused with LCM Lora, saved using diffusers .save_pretrained()
11
+
12
+ Sample usage:
13
+
14
+ ```python
15
+ import torch
16
+ from diffusers import StableDiffusionXLPipeline
17
+
18
+ pipe = StableDiffusionXLPipeline.from_pretrained("qiacheng/stable-diffusion-xl-base-1.0-lcm")
19
+
20
+ prompt = "a cat"
21
+
22
+ height = 1024
23
+ width = 1024
24
+ steps = 6
25
+ guidance_scale = 1
26
+
27
+ output = pipe(prompt=prompt, height=height, width=width, num_inference_steps=steps, guidance_scale=guidance_scale, output_type="pil")
28
+
29
+ ```
30
+