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 Settings
- Draw Things
- DiffusionBee
Success deply SDXL 0.9 in local, but I can only use PyTorch 1.13 (Using CPU to generate images, speed is slow)
#17
by supwang - opened
Solved.
Uninstall pytorch, then reinstall.
- pip uninstall -y torch torchvision torchaudio
- pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
supwang changed discussion status to closed

