Commit d71ecad
authored
denormalize latents with the mean and std if available (huggingface#7111)
* denormalize latents with the mean and std if available
* fix denormalize
* add latent mean and std in vae config
* address sayak's comment1 parent ac49f97 commit d71ecad
File tree
2 files changed
+18
-1
lines changed- src/diffusers
- models/autoencoders
- pipelines/stable_diffusion_xl
2 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
83 | 85 | | |
84 | 86 | | |
85 | 87 | | |
| |||
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1313 | 1313 | | |
1314 | 1314 | | |
1315 | 1315 | | |
1316 | | - | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
1317 | 1332 | | |
1318 | 1333 | | |
1319 | 1334 | | |
| |||
0 commit comments