From 11b42fdcab1768fccf16b223ec393c770e2237a3 Mon Sep 17 00:00:00 2001 From: CalamitousFelicitousness Date: Wed, 15 Apr 2026 23:03:07 +0100 Subject: [PATCH] fix(video): reset ltx loader cache on unload --- modules/ltx/ltx_util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ltx/ltx_util.py b/modules/ltx/ltx_util.py index 04b5cdfe0..e5655af78 100644 --- a/modules/ltx/ltx_util.py +++ b/modules/ltx/ltx_util.py @@ -20,6 +20,8 @@ def get_frames(frames: int): def load_model(engine: str, model: str): global loaded_model # pylint: disable=global-statement + if not shared.sd_loaded: + loaded_model = None if loaded_model == model: return if model is None or model == '' or model=='None':