Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,25 +1,47 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- diffusion
|
| 5 |
+
- concept-erasure
|
| 6 |
+
- stable-diffusion
|
| 7 |
+
- esdx
|
| 8 |
+
- airliner
|
| 9 |
+
datasets:
|
| 10 |
+
- imagenet
|
| 11 |
+
language:
|
| 12 |
+
- en
|
| 13 |
+
pipeline_tag: text-to-image
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# esdx_airliner
|
| 17 |
+
|
| 18 |
+
This is a concept-erased Stable Diffusion model using the **Exact Source Distillation (ESD-X)** method to remove the concept **"Airliner"**.
|
| 19 |
+
|
| 20 |
+
## Method
|
| 21 |
+
|
| 22 |
+
Exact Source Distillation (ESD-X) erases concepts by distilling knowledge while excluding specific concept representations.
|
| 23 |
+
|
| 24 |
+
## Usage
|
| 25 |
+
|
| 26 |
+
```python
|
| 27 |
+
from diffusers import StableDiffusionPipeline
|
| 28 |
+
import torch
|
| 29 |
+
|
| 30 |
+
pipe = StableDiffusionPipeline.from_pretrained("ErasureResearch/esdx_airliner", torch_dtype=torch.float16).to("cuda")
|
| 31 |
+
prompt = "a photo of a airliner"
|
| 32 |
+
image = pipe(prompt).images[0]
|
| 33 |
+
image.save("erased_airliner.png")
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
## Citation
|
| 37 |
+
|
| 38 |
+
If you use this model in your research, please cite:
|
| 39 |
+
|
| 40 |
+
```bibtex
|
| 41 |
+
@article{concept_erasure_2024,
|
| 42 |
+
title={Concept Erasure in Diffusion Models},
|
| 43 |
+
author={ErasureResearch Team},
|
| 44 |
+
journal={Proceedings of...},
|
| 45 |
+
year={2024}
|
| 46 |
+
}
|
| 47 |
+
```
|