mirror of
https://git.datalinker.icu/kijai/ComfyUI-CogVideoXWrapper.git
synced 2025-12-09 04:44:22 +08:00
don't keep vae tiling enabled forever
This commit is contained in:
parent
9208585442
commit
248428ccf8
2
nodes.py
2
nodes.py
@ -353,6 +353,8 @@ class CogVideoDecode:
|
||||
tile_overlap_factor_height=tile_overlap_factor_height,
|
||||
tile_overlap_factor_width=tile_overlap_factor_width,
|
||||
)
|
||||
else:
|
||||
vae.disable_tiling()
|
||||
latents = latents.to(vae.dtype)
|
||||
latents = latents.permute(0, 2, 1, 3, 4) # [batch_size, num_channels, num_frames, height, width]
|
||||
latents = 1 / vae.config.scaling_factor * latents
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user