Instructions to use Visualignment/safe-SDXL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Visualignment/safe-SDXL with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Visualignment/safe-SDXL", 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
Commit History
-
Add pipeline tag and update paper reference
Verified signatureThis PR improves the model card by: - Adding the `pipeline_tag: text-to-image` to the metadata, ensuring the model is discoverable under the text-to-image pipeline on the Hugging Face Hub. - Updating the main paper reference in the model card to [AlignGuard: Scalable Safety Alignment for Text-to-Image Generation](https://huggingface.co/papers/2412.10493), which is the paper explicitly linked in the prompt.a754723
-
Update README.md
Verified signature11cff09
-
Update README.md
Verified signature553160e -
Update README.md
Verified signaturef26832e -
Upload StableDiffusionXLPipeline
Verified signature60fc5ae -
initial commit
Verified signature3763bb3