Instructions to use diffusers/controlnet-canny-sdxl-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/controlnet-canny-sdxl-1.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers/controlnet-canny-sdxl-1.0", 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
- Draw Things
- DiffusionBee
Commit ·
56194ea
1
Parent(s): bb3959c
Set the VAE as the one downloaded (#6)
Browse files- Set the VAE as the one downloaded (eb51733960875b6dd5b7ae31d5cf2e43b576d3dc)
Co-authored-by: Cesar Ramos Medina <TuringRM@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -63,6 +63,7 @@ vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype
|
|
| 63 |
pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
|
| 64 |
"stabilityai/stable-diffusion-xl-base-1.0",
|
| 65 |
controlnet=controlnet,
|
|
|
|
| 66 |
torch_dtype=torch.float16,
|
| 67 |
)
|
| 68 |
pipe.enable_model_cpu_offload()
|
|
|
|
| 63 |
pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
|
| 64 |
"stabilityai/stable-diffusion-xl-base-1.0",
|
| 65 |
controlnet=controlnet,
|
| 66 |
+
vae=vae,
|
| 67 |
torch_dtype=torch.float16,
|
| 68 |
)
|
| 69 |
pipe.enable_model_cpu_offload()
|