refactor: simplify unpacking of latent samples shape in PadAndResize

This commit is contained in:
David Chatel
2025-09-28 20:50:19 +02:00
parent bece36e573
commit d541486f4e
+1 -1
View File
@@ -41,7 +41,7 @@ class PadAndResize:
def resize(self, image, latent, mode):
b, c, sh, sw = image.shape
_, _, th, tw = latent['samples'].shape
*_, th, tw = latent['samples'].shape
th, tw = th * 8, tw * 8
if (th, tw) == (sh, sw):
return image