kevinlu4588 commited on
Commit
c5c3af1
·
verified ·
1 Parent(s): f420573

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +46 -24
README.md CHANGED
@@ -1,25 +1,47 @@
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
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ```