Instructions to use Adeely93/SAGE with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Adeely93/SAGE with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Adeely93/SAGE", 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
Link model card to paper and fix code block formatting
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
---
|
| 2 |
-
license: mit
|
| 3 |
library_name: diffusers
|
|
|
|
|
|
|
| 4 |
tags:
|
| 5 |
- text-to-image
|
| 6 |
- safety-alignment
|
| 7 |
- stable-diffusion
|
| 8 |
- ECCV
|
| 9 |
-
pipeline_tag: text-to-image
|
| 10 |
---
|
| 11 |
|
| 12 |
# SAGE: Structure-Aware Geometric Regularization (ECCV-26)
|
| 13 |
|
| 14 |
-
**Paper:** The Illusion of High Utility in Safety Alignment of Text-to-Image Diffusion Models
|
| 15 |
**Authors:** Adeel Yousaf, Soumik Ghosh, James Beetham, Amrit Singh Bedi, Mubarak Shah
|
| 16 |
**Institution:** University of Central Florida
|
| 17 |
**Project Page:** [https://adeelyousaf.github.io/SAGE_ECCV26_Project_Page/](https://adeelyousaf.github.io/SAGE_ECCV26_Project_Page/)
|
|
@@ -42,3 +42,4 @@ pipe.text_encoder.load_state_dict(torch.load(ckpt_path, map_location="cpu"))
|
|
| 42 |
|
| 43 |
pipe = pipe.to("cuda")
|
| 44 |
image = pipe("a photo of a dog in a park").images[0]
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: diffusers
|
| 3 |
+
license: mit
|
| 4 |
+
pipeline_tag: text-to-image
|
| 5 |
tags:
|
| 6 |
- text-to-image
|
| 7 |
- safety-alignment
|
| 8 |
- stable-diffusion
|
| 9 |
- ECCV
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# SAGE: Structure-Aware Geometric Regularization (ECCV-26)
|
| 13 |
|
| 14 |
+
**Paper:** [The Illusion of High Utility in Safety Alignment of Text-to-Image Diffusion Models](https://huggingface.co/papers/2607.00402)
|
| 15 |
**Authors:** Adeel Yousaf, Soumik Ghosh, James Beetham, Amrit Singh Bedi, Mubarak Shah
|
| 16 |
**Institution:** University of Central Florida
|
| 17 |
**Project Page:** [https://adeelyousaf.github.io/SAGE_ECCV26_Project_Page/](https://adeelyousaf.github.io/SAGE_ECCV26_Project_Page/)
|
|
|
|
| 42 |
|
| 43 |
pipe = pipe.to("cuda")
|
| 44 |
image = pipe("a photo of a dog in a park").images[0]
|
| 45 |
+
```
|