Instructions to use stabilityai/stable-diffusion-xl-base-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-base-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("stabilityai/stable-diffusion-xl-base-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] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Finetuning on Long Prompts
#129
by Yorth - opened
I have been trying to finetune this model with some dalle 3 style long descriptive prompt and I have been running into the weirdest issues (If it's not compel somehow not working with one random long prompt, it's some mismatch tensor issue that randomly pops up, or backward graph issue). I have been going at this task for like 3 days nonstop rn and wanna know if someone already did the work and Im just banging my head on the wall for nothing.
Are you fine-tuning on caption-image prompts