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
5d4cfe8
-
Update README.md
93b080b -
Update README.md (#5)
- Update README.md (ace5058aafb5f81d4d9f60b8db0d449c626d7aea) Co-authored-by: Ameer Azam <ameerazam08@users.noreply.huggingface.co>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)
- add 0.9 vae (55da67204b5bcb9179975be80b461629769324e8) Co-authored-by: Patrick von Platen <patrickvonplaten@users.noreply.huggingface.co>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
Robin Rombachffe77af
-
Update README.md
adfafeb
-
Update `README.md` (#2)
- Update `README.md` (cf17a741162b95617c0719e467e67e8e1cad0d59) Co-authored-by: Apolinário from multimodal AI art <multimodalart@users.noreply.huggingface.co>7e690cc -
License, tags and diffusers updates (#1)
- License, tags and diffusers updates (cc6e139dc45ee2ff34fe2652db94bf664df0a07c) - refiner is image-to-image (mostly) (6e5255a5265ba5525f8455de271e8321bab2d2eb) - add diffusers (876c1f71a3c8cbd89fcd34be2e13545c22bb7b72) Co-authored-by: Patrick von Platen <patrickvonplaten@users.noreply.huggingface.co> Co-authored-by: Apolinário from multimodal AI art <multimodalart@users.noreply.huggingface.co>44e025f -
add weights
Robin Rombach90b043f -
add license
Robin Rombach0c8e162 -
Update README.md
ebd2ba0 -
Upload 3 files
0d31a87 -
initial commit
bb60eac