bokyeong1015
commited on
Commit
•
05a373f
1
Parent(s):
2016f2f
Update README.md
Browse files
README.md
CHANGED
@@ -80,14 +80,22 @@ diffusers 0.15.0
|
|
80 |
```
|
81 |
|
82 |
|
83 |
-
|
84 |
## Compression Method
|
85 |
|
86 |
### U-Net Architecture
|
87 |
-
|
88 |
-
|
89 |
-
-
|
90 |
-
- 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
|
92 |
|
93 |
### Distillation Pretraining
|
@@ -95,7 +103,7 @@ The compact U-Net was trained to mimic the behavior of the original U-Net. We le
|
|
95 |
|
96 |
|
97 |
<center>
|
98 |
-
<img alt="
|
99 |
</center>
|
100 |
|
101 |
|
@@ -115,17 +123,17 @@ The following table shows the zero-shot results on 30K samples from the MS-COCO
|
|
115 |
|
116 |
| Model | FID↓ | IS↑ | CLIP Score↑<br>(ViT-g/14) | # Params,<br>U-Net | # Params,<br>Whole SDM |
|
117 |
|:---:|:---:|:---:|:---:|:---:|:---:|
|
118 |
-
| Stable Diffusion v1.4 | 13.05 | 36.76 | 0.2958 | 0.86B | 1.04B |
|
119 |
-
| BK-SDM-Base (Ours) | 15.76 | 33.79 | 0.2878 | 0.58B | 0.76B |
|
120 |
-
| BK-SDM-Small (Ours) | 16.98 | 31.68 | 0.2677 | 0.49B | 0.66B |
|
121 |
-
| BK-SDM-Tiny (Ours) | 17.12 | 30.09 | 0.2653 | 0.33B | 0.50B |
|
122 |
|
123 |
<br/>
|
124 |
|
125 |
The following figure depicts synthesized images with some MS-COCO captions.
|
126 |
|
127 |
<center>
|
128 |
-
<img alt="Visual results" img src="https://
|
129 |
</center>
|
130 |
|
131 |
|
|
|
80 |
```
|
81 |
|
82 |
|
|
|
83 |
## Compression Method
|
84 |
|
85 |
### U-Net Architecture
|
86 |
+
Certain residual and attention blocks were eliminated from the U-Net of SDM-v1.4:
|
87 |
+
|
88 |
+
- 1.04B-param [SDM-v1.4](https://huggingface.co/CompVis/stable-diffusion-v1-4) (0.86B-param U-Net): the original source model.
|
89 |
+
- 0.76B-param [**BK-SDM-Base**](https://huggingface.co/nota-ai/bk-sdm-base) (0.58B-param U-Net): obtained with ① fewer blocks in outer stages.
|
90 |
+
- 0.66B-param [**BK-SDM-Small**](https://huggingface.co/nota-ai/bk-sdm-small) (0.49B-param U-Net): obtained with ① and ② mid-stage removal.
|
91 |
+
- 0.50B-param [**BK-SDM-Tiny**](https://huggingface.co/nota-ai/bk-sdm-tiny) (0.33B-param U-Net): obtained with ①, ②, and ③ further inner-stage removal.
|
92 |
+
|
93 |
+
|
94 |
+
<center>
|
95 |
+
<img alt="U-Net architectures" img src="https://netspresso-research-code-release.s3.us-east-2.amazonaws.com/assets-bk-sdm/fig_arch.png" width="100%">
|
96 |
+
</center>
|
97 |
+
|
98 |
+
|
99 |
|
100 |
|
101 |
### Distillation Pretraining
|
|
|
103 |
|
104 |
|
105 |
<center>
|
106 |
+
<img alt="KD-based pretraining" img src="https://netspresso-research-code-release.s3.us-east-2.amazonaws.com/assets-bk-sdm/fig_kd.png" width="100%">
|
107 |
</center>
|
108 |
|
109 |
|
|
|
123 |
|
124 |
| Model | FID↓ | IS↑ | CLIP Score↑<br>(ViT-g/14) | # Params,<br>U-Net | # Params,<br>Whole SDM |
|
125 |
|:---:|:---:|:---:|:---:|:---:|:---:|
|
126 |
+
| [Stable Diffusion v1.4](https://huggingface.co/CompVis/stable-diffusion-v1-4) | 13.05 | 36.76 | 0.2958 | 0.86B | 1.04B |
|
127 |
+
| [BK-SDM-Base](https://huggingface.co/nota-ai/bk-sdm-base) (Ours) | 15.76 | 33.79 | 0.2878 | 0.58B | 0.76B |
|
128 |
+
| [BK-SDM-Small](https://huggingface.co/nota-ai/bk-sdm-small) (Ours) | 16.98 | 31.68 | 0.2677 | 0.49B | 0.66B |
|
129 |
+
| [BK-SDM-Tiny](https://huggingface.co/nota-ai/bk-sdm-tiny) (Ours) | 17.12 | 30.09 | 0.2653 | 0.33B | 0.50B |
|
130 |
|
131 |
<br/>
|
132 |
|
133 |
The following figure depicts synthesized images with some MS-COCO captions.
|
134 |
|
135 |
<center>
|
136 |
+
<img alt="Visual results" img src="https://netspresso-research-code-release.s3.us-east-2.amazonaws.com/assets-bk-sdm/fig_results.png" width="100%">
|
137 |
</center>
|
138 |
|
139 |
|