Quick patch for the LoRA Stacker node (#314)

* Update efficiency_nodes.py

Properly restrict the node to a max of three LoRA, a quick patch.

* Update efficiency_nodes.py

Edit range so it includes 3 LoRA-related widgets instead of 2 (didn't catch this the first time)
This commit is contained in:
LaVie024
2025-05-30 03:15:34 +00:00
committed by GitHub
parent 3c5fc7eb35
commit 36ddf0e694

View File

@@ -300,11 +300,11 @@ class TSC_LoRA_Stacker:
inputs = {
"required": {
"input_mode": (cls.modes,),
"lora_count": ("INT", {"default": 3, "min": 0, "max": 50, "step": 1}),
"lora_count": ("INT", {"default": 3, "min": 0, "max": 3, "step": 1}),
}
}
for i in range(1, 50):
for i in range(1, 4):
inputs["required"][f"lora_name_{i}"] = (loras,)
inputs["required"][f"lora_wt_{i}"] = ("FLOAT", {"default": 1.0, "min": -10.0, "max": 10.0, "step": 0.01})
inputs["required"][f"model_str_{i}"] = ("FLOAT", {"default": 1.0, "min": -10.0, "max": 10.0, "step": 0.01})