Instructions to use Visualignment/safe-stable-diffusion-v1-5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Visualignment/safe-stable-diffusion-v1-5 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-stable-diffusion-v1-5", 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
-
Update model card with correct paper details and pipeline tag
Verified signatureThis PR improves the model card by: - Updating the introductory text to correctly reference and link the official Hugging Face Papers page for [AlignGuard: Scalable Safety Alignment for Text-to-Image Generation](https://huggingface.co/papers/2412.10493). - Adding the `pipeline_tag: text-to-image` to the metadata, ensuring the model is correctly categorized and discoverable on the Hub at https://huggingface.co/models?pipeline_tag=text-to-image.c2a2ec6
-
Update README.md
Verified signature1cc4fee -
Update README.md
Verified signaturef940ff3 -
Update README.md
Verified signature17af4fe
-
Upload StableDiffusionPipeline
Verified signature8469619 -
initial commit
Verified signature50b3668