kijai / ComfyUI-CogVideoXWrapper

989 stars 59 forks source link

Enable vae encode tiling for ToraEncode can dramatically reduce Vram occupied #190

Closed tdrminglin closed 3 weeks ago

tdrminglin commented 3 weeks ago

just copy the"Enable vae encode tiling " code and insert it before video_flow = vae.encode(video_flow)...

shirubei commented 3 weeks ago

Thank you! I'm not familiar with the code at all. Could you please point out where's the code for "Enable vae encode tiling " ?

tdrminglin commented 3 weeks ago

Thank you! I'm not familiar with the code at all. Could you please point out where's the code for "Enable vae encode tiling " ?

    from .mz_enable_vae_encode_tiling import enable_vae_encode_tiling
    enable_vae_encode_tiling(vae)
shirubei commented 3 weeks ago

Awesome! You saved me. Many thanks.