Upload folder using huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- diffusion
|
| 5 |
+
- concept-erasure
|
| 6 |
+
- stable-diffusion
|
| 7 |
+
- esdx
|
| 8 |
+
- airliner
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# esdx_airliner
|
| 12 |
+
|
| 13 |
+
This is a concept-erased Stable Diffusion model using the **esdx** method to remove the concept **"airliner"**.
|
| 14 |
+
|
| 15 |
+
## Usage
|
| 16 |
+
|
| 17 |
+
```python
|
| 18 |
+
from diffusers import StableDiffusionPipeline
|
| 19 |
+
import torch
|
| 20 |
+
|
| 21 |
+
pipe = StableDiffusionPipeline.from_pretrained("ErasureResearch/esdx_airliner", torch_dtype=torch.float16).to("cuda")
|
| 22 |
+
prompt = "a photo of a airliner"
|
| 23 |
+
image = pipe(prompt).images[0]
|
| 24 |
+
image.show()
|
| 25 |
+
|