diffusers backwards compatibility on tiled encode

for some reason it's tuple in 0.31.0
This commit is contained in:
kijai 2024-10-25 21:49:48 +03:00
parent 7fe4716f2d
commit f9c1e11851

View File

@ -81,6 +81,8 @@ def tiled_encode(self, x: torch.Tensor) -> torch.Tensor:
] ]
tile = self.encoder(tile) tile = self.encoder(tile)
if not isinstance(tile, tuple):
tile = (tile,)
if self.quant_conv is not None: if self.quant_conv is not None:
tile = self.quant_conv(tile) tile = self.quant_conv(tile)
time.append(tile[0]) time.append(tile[0])