Instructions to use stabilityai/stable-diffusion-xl-base-0.9 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use stabilityai/stable-diffusion-xl-base-0.9 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-0.9", 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
API Pipeline is not up
#43
by Manjushri - opened
The API calls are not working using any method. The Host API on the Model gives the same error as the gr.Interface method. And Response/Query method says the BytesIO file is unreadable... Both methods work when tested with SD 2.1, so it isn't my code. Plus, no one else has it running... You need to actually add the StableDiffusionXLPipeline, it simply doesn't exist... Thus no one can do API right now from HF.
Is this why I am getting a "module 'diffusers' has no attribute 'StableDiffusionXLPipeline'"-error?
Yes. I hope they fix this soon.
+1