From a3032e43631acb01041f846c179732ae1264345a Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Tue, 29 Jul 2025 01:45:25 +0300 Subject: [PATCH] clear lora patches first --- nodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nodes.py b/nodes.py index 327fe6a..f912b87 100644 --- a/nodes.py +++ b/nodes.py @@ -1320,6 +1320,7 @@ class WanVideoSampler: vae_upscale_factor = 16 if is_5b else 8 if len(patcher.patches) != 0 and transformer_options.get("linear_with_lora", False) is True: + remove_lora_from_module(transformer) log.info(f"Using {len(patcher.patches)} LoRA weight patches for WanVideo model") if not gguf: convert_linear_with_lora_and_scale(transformer, patches=patcher.patches)