Instructions to use stabilityai/stable-diffusion-xl-refiner-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-diffusion-xl-refiner-1.0 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Commit History
Update README.md 93b080b
Update README.md (#5) c9822f0
Update model_index.json c35c0a0
Update model_index.json b4969b5
Update vae/config.json 1c3c4e1
[Diffusers] Re-instate 0.9 VAE as default VAE (#8) fb6d705
added 1.0 weights with 0.9 vae 3ae1bc5
Delete sd_xl_refiner_1.0_0.9vae.safetensors 74708e7
add weights with 0.9 vae ffe77af
Robin Rombach commited on
Update README.md adfafeb
Update `README.md` (#2) 7e690cc
License, tags and diffusers updates (#1) 44e025f
add weights 90b043f
Robin Rombach commited on
add license 0c8e162
Robin Rombach commited on