Instructions to use latent-consistency/lcm-lora-sdxl with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use latent-consistency/lcm-lora-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("stabilityai/stable-diffusion-xl-base-1.0", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Commit ·
3da89c9
1
Parent(s): 8698e97
Update README.md
Browse files
README.md
CHANGED
|
@@ -60,7 +60,7 @@ prompt = "Self-portrait oil painting, a beautiful cyborg with golden hair, 8k"
|
|
| 60 |
image = pipe(prompt=prompt, num_inference_steps=4, guidance_scale=0).images[0]
|
| 61 |
```
|
| 62 |
|
| 63 |
-
.images[0]
|
| 61 |
```
|
| 62 |
|
| 63 |
+

|
| 64 |
|
| 65 |
### Image-to-Image
|
| 66 |
|