aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_vae_approx.py
diff options
context:
space:
mode:
authorKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-08-04 05:38:52 +0000
committerKohaku-Blueleaf <59680068+KohakuBlueleaf@users.noreply.github.com>2023-08-04 05:38:52 +0000
commit75336dfc84cae280036bc52a6805eb10d9ae30ba (patch)
tree449e515435a3f1208fe8ab18f44f58131bda1232 /modules/sd_vae_approx.py
parent3f9e09a615e26a90f914f45051264fbf3609e146 (diff)
downloadstable-diffusion-webui-gfx803-75336dfc84cae280036bc52a6805eb10d9ae30ba.tar.gz
stable-diffusion-webui-gfx803-75336dfc84cae280036bc52a6805eb10d9ae30ba.tar.bz2
stable-diffusion-webui-gfx803-75336dfc84cae280036bc52a6805eb10d9ae30ba.zip
add TAESD for i2i and t2i
Diffstat (limited to 'modules/sd_vae_approx.py')
-rw-r--r--modules/sd_vae_approx.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sd_vae_approx.py b/modules/sd_vae_approx.py
index 86bd658a..3965e223 100644
--- a/modules/sd_vae_approx.py
+++ b/modules/sd_vae_approx.py
@@ -81,6 +81,6 @@ def cheap_approximation(sample):
coefs = torch.tensor(coeffs).to(sample.device)
- x_sample = torch.einsum("lxy,lr -> rxy", sample, coefs)
+ x_sample = torch.einsum("...lxy,lr -> ...rxy", sample, coefs)
return x_sample