Instructions to use latent-consistency/lcm-sdxl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use latent-consistency/lcm-sdxl with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("latent-consistency/lcm-sdxl", torch_dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Commit ·
fdf6908
1
Parent(s): ff2292f
Update README.md
Browse files
README.md
CHANGED
|
@@ -42,7 +42,7 @@ pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1
|
|
| 42 |
pipe.scheduler = LCMScheduler.from_config(sd_pipe.scheduler.config)
|
| 43 |
pipe.to("cuda")
|
| 44 |
|
| 45 |
-
prompt = "a
|
| 46 |
|
| 47 |
image = pipe(prompt, num_inference_steps=4, guidance_scale=8.0).images[0]
|
| 48 |
```
|
|
|
|
| 42 |
pipe.scheduler = LCMScheduler.from_config(sd_pipe.scheduler.config)
|
| 43 |
pipe.to("cuda")
|
| 44 |
|
| 45 |
+
prompt = "a close-up picture of an old man standing in the rain"
|
| 46 |
|
| 47 |
image = pipe(prompt, num_inference_steps=4, guidance_scale=8.0).images[0]
|
| 48 |
```
|