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 ·
8698e97
1
Parent(s): b4aec14
Update README.md
Browse files
README.md
CHANGED
|
@@ -60,6 +60,8 @@ 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 |
### Image-to-Image
|
| 64 |
|
| 65 |
Works as well! TODO docs
|
|
|
|
| 60 |
image = pipe(prompt=prompt, num_inference_steps=4, guidance_scale=0).images[0]
|
| 61 |
```
|
| 62 |
|
| 63 |
+

|
| 64 |
+
|
| 65 |
### Image-to-Image
|
| 66 |
|
| 67 |
Works as well! TODO docs
|