Robin Rombach
commited on
Commit
·
b7e7887
1
Parent(s):
f8f9ec2
add readme with eval results
Browse files- README.md +73 -0
- eval/ae-decoder-tuning-reconstructions/ft-ema/00011.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-ema/00025.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-ema/00029.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-ema/00037.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-ema/00043.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-ema/00051.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-ema/00053.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-ema/00055.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-mse/00011.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-mse/00025.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-mse/00029.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-mse/00037.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-mse/00043.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-mse/00051.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-mse/00053.png +0 -0
- eval/ae-decoder-tuning-reconstructions/ft-mse/00055.png +0 -0
- eval/ae-decoder-tuning-reconstructions/original/00011.png +0 -0
- eval/ae-decoder-tuning-reconstructions/original/00025.png +0 -0
- eval/ae-decoder-tuning-reconstructions/original/00029.png +0 -0
- eval/ae-decoder-tuning-reconstructions/original/00037.png +0 -0
- eval/ae-decoder-tuning-reconstructions/original/00043.png +0 -0
- eval/ae-decoder-tuning-reconstructions/original/00051.png +0 -0
- eval/ae-decoder-tuning-reconstructions/original/00053.png +0 -0
- eval/ae-decoder-tuning-reconstructions/original/00055.png +0 -0
README.md
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Improved Autoencoders
|
2 |
+
## Decoder Finetuning
|
3 |
+
We publish two kl-f8 autoencoder versions, finetuned from the original [kl-f8 autoencoder](https://github.com/CompVis/latent-diffusion#pretrained-autoencoding-models).
|
4 |
+
The first, _ft-EMA_, was resumed from the original checkpoint, trained for 313198 steps and uses EMA weights.
|
5 |
+
The second, _ft-MSE_, was resumed from _ft-EMA_ and uses EMA weights and was trained for another 280k steps using a re-weighted loss, with more emphasis
|
6 |
+
on MSE reconstruction (producing somewhat ``smoother'' outputs).
|
7 |
+
To keep compatibility with existing models, only the decoder part was finetuned; the checkpoints can be used as a drop-in replacement for the existing autoencoder.
|
8 |
+
|
9 |
+
_Original kl-f8 VAE vs f8-ft-EMA vs f8-ft-MSE_
|
10 |
+
|
11 |
+
## Evaluation
|
12 |
+
### COCO 2017 (256x256, val, 5000 images)
|
13 |
+
| Model | train steps | rFID | PSNR | SSIM | PSIM | Link | Comments
|
14 |
+
|----------|---------|------|--------------|---------------|---------------|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
|
15 |
+
| | | | | | | | |
|
16 |
+
| original | 246803 | 4.99 | 23.4 +/- 3.8 | 0.69 +/- 0.14 | 1.01 +/- 0.28 | https://ommer-lab.com/files/latent-diffusion/kl-f8.zip | as used in SD |
|
17 |
+
| ft-EMA | 560001 | 4.42 | 23.8 +/- 3.9 | 0.69 +/- 0.13 | 0.96 +/- 0.27 | https://huggingface.co/stabilityai/stable-diffusion-decoder-finetune/blob/main/ckpt_00560000-kat-ema-pruned.ckpt | slightly better overall, with EMA |
|
18 |
+
| ft-MSE | 840001 | 4.70 | 24.5 +/- 3.7 | 0.71 +/- 0.13 | 0.92 +/- 0.27 | https://huggingface.co/stabilityai/stable-diffusion-decoder-finetune/blob/main/ckpt_00840000-kat-ema-pruned.ckpt | resumed with EMA from ft-EMA, emphasis on MSE (rec. loss = MSE + 0.1 * LPIPS), smoother outputs |
|
19 |
+
|
20 |
+
|
21 |
+
### LAION-Aesthetics 5+ (256x256, subset, 10000 images)
|
22 |
+
| Model | train steps | rFID | PSNR | SSIM | PSIM | Link | Comments
|
23 |
+
|----------|-----------|------|--------------|---------------|---------------|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
|
24 |
+
| | | | | | | | |
|
25 |
+
| original | 246803 | 2.61 | 26.0 +/- 4.4 | 0.81 +/- 0.12 | 0.75 +/- 0.36 | https://ommer-lab.com/files/latent-diffusion/kl-f8.zip | as used in SD |
|
26 |
+
| ft-EMA | 560001 | 1.77 | 26.7 +/- 4.8 | 0.82 +/- 0.12 | 0.67 +/- 0.34 | https://huggingface.co/stabilityai/stable-diffusion-decoder-finetune/blob/main/ckpt_00560000-kat-ema-pruned.ckpt | slightly better overall, with EMA |
|
27 |
+
| ft-MSE | 840001 | 1.88 | 27.3 +/- 4.7 | 0.83 +/- 0.11 | 0.65 +/- 0.34 | https://huggingface.co/stabilityai/stable-diffusion-decoder-finetune/blob/main/ckpt_00840000-kat-ema-pruned.ckpt | resumed with EMA from ft-EMA, emphasis on MSE (rec. loss = MSE + 0.1 * LPIPS), smoother outputs |
|
28 |
+
|
29 |
+
|
30 |
+
### Visual
|
31 |
+
_Visualization of reconstructions on 256x256 images from the COCO2017 validation dataset._
|
32 |
+
|
33 |
+
<p align="center">
|
34 |
+
<br>
|
35 |
+
<b>
|
36 |
+
256x256: ft-MSE (left), ft-EMA (middle), original (right)</b>
|
37 |
+
</p>
|
38 |
+
|
39 |
+
<p align="center">
|
40 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-mse/00025.png />
|
41 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-ema/00025.png />
|
42 |
+
<img src=eval/ae-decoder-tuning-reconstructions/original/00025.png />
|
43 |
+
</p>
|
44 |
+
|
45 |
+
<p align="center">
|
46 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-mse/00011.png />
|
47 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-ema/00011.png />
|
48 |
+
<img src=eval/ae-decoder-tuning-reconstructions/original/00011.png />
|
49 |
+
</p>
|
50 |
+
|
51 |
+
<p align="center">
|
52 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-mse/00037.png />
|
53 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-ema/00037.png />
|
54 |
+
<img src=eval/ae-decoder-tuning-reconstructions/original/00037.png />
|
55 |
+
</p>
|
56 |
+
|
57 |
+
<p align="center">
|
58 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-mse/00043.png />
|
59 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-ema/00043.png />
|
60 |
+
<img src=eval/ae-decoder-tuning-reconstructions/original/00043.png />
|
61 |
+
</p>
|
62 |
+
|
63 |
+
<p align="center">
|
64 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-mse/00053.png />
|
65 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-ema/00053.png />
|
66 |
+
<img src=eval/ae-decoder-tuning-reconstructions/original/00053.png />
|
67 |
+
</p>
|
68 |
+
|
69 |
+
<p align="center">
|
70 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-mse/00029.png />
|
71 |
+
<img src=eval/ae-decoder-tuning-reconstructions/ft-ema/00029.png />
|
72 |
+
<img src=eval/ae-decoder-tuning-reconstructions/original/00029.png />
|
73 |
+
</p>
|
eval/ae-decoder-tuning-reconstructions/ft-ema/00011.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-ema/00025.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-ema/00029.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-ema/00037.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-ema/00043.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-ema/00051.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-ema/00053.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-ema/00055.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-mse/00011.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-mse/00025.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-mse/00029.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-mse/00037.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-mse/00043.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-mse/00051.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-mse/00053.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/ft-mse/00055.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/original/00011.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/original/00025.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/original/00029.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/original/00037.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/original/00043.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/original/00051.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/original/00053.png
ADDED
![]() |
eval/ae-decoder-tuning-reconstructions/original/00055.png
ADDED
![]() |