mirror of
https://git.datalinker.icu/kijai/ComfyUI-CogVideoXWrapper.git
synced 2026-05-15 05:22:24 +08:00
Don't keep VAE tiling enabled after decoding is done
This commit is contained in:
parent
a5908e556f
commit
0f7f457b82
1
nodes.py
1
nodes.py
@ -523,6 +523,7 @@ class CogVideoDecode:
|
|||||||
latents = 1 / vae.config.scaling_factor * latents
|
latents = 1 / vae.config.scaling_factor * latents
|
||||||
|
|
||||||
frames = vae.decode(latents).sample
|
frames = vae.decode(latents).sample
|
||||||
|
vae.disable_tiling()
|
||||||
if not pipeline["cpu_offloading"]:
|
if not pipeline["cpu_offloading"]:
|
||||||
vae.to(offload_device)
|
vae.to(offload_device)
|
||||||
mm.soft_empty_cache()
|
mm.soft_empty_cache()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user