From 51e03a39b7264e3a7c6b4aae13ee31b563700225 Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Thu, 3 Sep 2026 18:08:44 +0000 Subject: [PATCH] Reduce latent upscale branch memory --- dumas_h3_longvideos.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dumas_h3_longvideos.py b/dumas_h3_longvideos.py index 7857e42..1a835d2 100644 --- a/dumas_h3_longvideos.py +++ b/dumas_h3_longvideos.py @@ -6818,6 +6818,8 @@ class H3LongVideos: refined_out = {"samples": comfy.nested_tensor.NestedTensor((refined_video, full_audio))} timing["latent_upscale_sample"] += time.perf_counter() - latent_start refined_out = _video_only_refined_latent(upscale_latent, refined_out) + del upscale_latent, upscaled_video, full_audio + mm.soft_empty_cache() except Exception as e: if _is_oom(e): e._h3_stage = "sampling"