Fix tuple unpacking error in print_model_list

Fixed ValueError: too many values to unpack (expected 5)
- Line 3929: Added missing 6th element to unpacking
- Line 3936: Added missing 6th element to unpacking

The results tuple has 6 elements:
(name, info, caps, is_disabled, fail_count, orig_idx)
parent 6db57c26
...@@ -3926,14 +3926,14 @@ def print_model_list(args): ...@@ -3926,14 +3926,14 @@ def print_model_list(args):
print(" V2V=Video-to-Video, V2I=Video-to-Image, 3D=2D-to-3D, TTS=Text-to-Speech") print(" V2V=Video-to-Video, V2I=Video-to-Image, 3D=2D-to-3D, TTS=Text-to-Speech")
# Show legend for auto column # Show legend for auto column
disabled_count = sum(1 for _, _, _, is_disabled, _ in results if is_disabled) disabled_count = sum(1 for _, _, _, is_disabled, _, _ in results if is_disabled)
if disabled_count > 0: if disabled_count > 0:
# Count user-disabled vs auto-disabled # Count user-disabled vs auto-disabled
user_disabled_count = 0 user_disabled_count = 0
auto_disabled_count = 0 auto_disabled_count = 0
auto_disable_data = load_auto_disable_data() auto_disable_data = load_auto_disable_data()
for _, info, _, is_disabled, fail_count in results: for _, info, _, is_disabled, fail_count, _ in results:
if is_disabled: if is_disabled:
model_id = info.get("id", "") model_id = info.get("id", "")
key = model_id or _ key = model_id or _
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment