mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-03-21 21:22:13 -03:00
Fix lora_stack tuple unpacking to support both 3-tuple and 4-tuple formats
Co-authored-by: jags111 <5968619+jags111@users.noreply.github.com>
This commit is contained in:
BIN
__pycache__/efficiency_nodes.cpython-312.pyc
Normal file
BIN
__pycache__/efficiency_nodes.cpython-312.pyc
Normal file
Binary file not shown.
BIN
__pycache__/tsc_utils.cpython-312.pyc
Normal file
BIN
__pycache__/tsc_utils.cpython-312.pyc
Normal file
Binary file not shown.
@@ -1745,7 +1745,11 @@ class TSC_KSampler:
|
||||
if X_type not in lora_types and Y_type not in lora_types:
|
||||
if lora_stack:
|
||||
names_list = []
|
||||
for name, model_wt, clip_wt in lora_stack:
|
||||
for lora_tuple in lora_stack:
|
||||
# Support both 3-tuple and 4-tuple
|
||||
name = lora_tuple[0]
|
||||
model_wt = lora_tuple[1]
|
||||
clip_wt = lora_tuple[2]
|
||||
base_name = os.path.splitext(os.path.basename(name))[0]
|
||||
formatted_str = f"{base_name}({round(model_wt, 3)},{round(clip_wt, 3)})"
|
||||
names_list.append(formatted_str)
|
||||
|
||||
Reference in New Issue
Block a user