From f6555e5f52161060d5e299400ec78701b6c8d17a Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Mon, 3 Jul 2023 07:35:03 +0900 Subject: [PATCH] hotfix: ExecutionOneOf - inefficient --- execution.py | 5 ++++- models/loras/put_loras_here | 0 2 files changed, 4 insertions(+), 1 deletion(-) delete mode 100644 models/loras/put_loras_here diff --git a/execution.py b/execution.py index 801a0940e..851e43ec4 100644 --- a/execution.py +++ b/execution.py @@ -53,7 +53,10 @@ def map_node_over_list(obj, input_data_all, func, allow_interrupt=False): if hasattr(obj, "INPUT_IS_LIST"): intput_is_list = obj.INPUT_IS_LIST - max_len_input = max([len(x) for x in input_data_all.values()]) + if input_data_all is not None: + max_len_input = max([len(x) for x in input_data_all.values()]) + else: + max_len_input = 0 # get a slice of inputs, repeat last input when list isn't long enough def slice_dict(d, i): diff --git a/models/loras/put_loras_here b/models/loras/put_loras_here deleted file mode 100644 index e69de29bb..000000000