From 6e67881e917c0847e88326048cf9eda7098914dd Mon Sep 17 00:00:00 2001 From: Mijago Date: Sun, 23 Jul 2023 20:13:18 +0200 Subject: [PATCH] Allow the loading of lora_stack without lora_name --- efficiency_nodes.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/efficiency_nodes.py b/efficiency_nodes.py index b0496b0..3e142cc 100644 --- a/efficiency_nodes.py +++ b/efficiency_nodes.py @@ -88,8 +88,10 @@ class TSC_EfficientLoader: # Retrieve cache numbers vae_cache, ckpt_cache, lora_cache = get_cache_numbers("Efficient Loader") - if lora_name != "None": - lora_params = [(lora_name, lora_model_strength, lora_clip_strength)] + if lora_name != "None" or lora_stack is not None: + lora_params = [] + if lora_name != "None": + lora_params.append((lora_name, lora_model_strength, lora_clip_strength)) if lora_stack is not None: lora_params.extend(lora_stack) model, clip = load_lora(lora_params, ckpt_name, my_unique_id, cache=lora_cache, ckpt_cache=ckpt_cache, cache_overwrite=True)