add TAESD for i2i and t2i

This commit is contained in:
Kohaku-Blueleaf
2023-08-04 13:38:52 +08:00
parent 3f9e09a615
commit 75336dfc84
5 changed files with 86 additions and 21 deletions

View File

@@ -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