mirror of
https://git.datalinker.icu/kijai/ComfyUI-CogVideoXWrapper.git
synced 2025-12-08 20:34:23 +08:00
diffusers backwards compatibility on tiled encode
for some reason it's tuple in 0.31.0
This commit is contained in:
parent
7fe4716f2d
commit
f9c1e11851
@ -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])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user