David Burnett
commited on
Commit
·
6b6aa5c
1
Parent(s):
debbdf6
Add everything else from SDXL base.
Browse filesmodel_index scheduler changed to default to LCMScheduler
- .gitattributes +1 -0
- README.md +27 -3
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,6 +1,30 @@
|
|
| 1 |
---
|
| 2 |
-
license: openrail
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
-
This is a copy of the sdxl base (stabilityai/stable-diffusion-xl-base-1.0)
|
| 6 |
-
with the LCM distilled unet (latent-consistency/lcm-sdxl) .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: openrail++
|
| 3 |
+
tags:
|
| 4 |
+
- text-to-image
|
| 5 |
+
- stable-diffusion
|
| 6 |
---
|
| 7 |
|
| 8 |
+
This is a copy of the sdxl base (stabilityai/stable-diffusion-xl-base-1.0) with the unet replaced
|
| 9 |
+
with the LCM distilled unet (latent-consistency/lcm-sdxl) and scheduler config set to default to the LCM Scheduler.
|
| 10 |
+
|
| 11 |
+
This makes LCM SDXL run as a standard Diffusion Pipeline
|
| 12 |
+
|
| 13 |
+
```py
|
| 14 |
+
from diffusers import DiffusionPipeline
|
| 15 |
+
import torch
|
| 16 |
+
|
| 17 |
+
pipe = DiffusionPipeline.from_pretrained(
|
| 18 |
+
"Vargol/lcm_sdxl_full_model", variant='fp16', torch_dtype=torch.float16
|
| 19 |
+
).to("mps")
|
| 20 |
+
|
| 21 |
+
prompt = "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k"
|
| 22 |
+
generator = torch.manual_seed(0)
|
| 23 |
+
|
| 24 |
+
image = pipe(
|
| 25 |
+
prompt=prompt, num_inference_steps=4, generator=generator, guidance_scale=8.0
|
| 26 |
+
).images[0]
|
| 27 |
+
|
| 28 |
+
image.save('distilled.png')
|
| 29 |
+
|
| 30 |
+
```
|