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
- Draw Things
- DiffusionBee
license
Thank you for your excellent work. Can I use this version for commercial purposes?
i would also like to know that
License is CreativeML Open RAIL++-M. From the github: https://github.com/Stability-AI/generative-models/blob/main/model_licenses/LICENSE-SDXL1.0
It is amazing.
Extracts:
"...hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license..."
"...license to make, have made, use, offer to sell, sell, import, and otherwise transfer..."
But there's more! If you make changes to the model, then try to sue someone for using your changes, you lose your license to use it at all! :-)
None of this IlluminatiDiffusion nonsense this time.
"...If You institute patent litigation against any entity ... alleging ... patent infringement, then any patent licenses granted to You under this
License for the Model and/or Work shall terminate..."
I tried the api endpoint and request is send and received a response image, but how can i view that image.
Then why does it say this in the HF Model Card:
Uses
Direct Use
The model is intended for research purposes only. ...