From 4103f5b9351fd83783c6ef39c8044035bf745233 Mon Sep 17 00:00:00 2001 From: DeepBeepMeep Date: Wed, 2 Jul 2025 18:46:18 +0200 Subject: [PATCH] fixed crash when lora multiplier missing --- wgp.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wgp.py b/wgp.py index a72e6bf..f5e9c80 100644 --- a/wgp.py +++ b/wgp.py @@ -3757,6 +3757,8 @@ def generate_video( loras_list_mult_choices_nums.append(mult) if len(loras_list_mult_choices_nums ) < len(activated_loras): loras_list_mult_choices_nums += [1.0] * ( len(activated_loras) - len(loras_list_mult_choices_nums ) ) + if len(loras_slists ) < len(activated_loras): + loras_slists += [1.0] * ( len(activated_loras) - len(loras_slists ) ) lora_dir = get_lora_dir(model_type) loras_selected = [ os.path.join(lora_dir, lora) for lora in activated_loras]