Throw error on length mismatch

This commit is contained in:
mcDandy
2026-06-08 21:38:26 +02:00
parent d1a05e0d7a
commit d89fa084af
+2
View File
@@ -119,6 +119,8 @@ class BatchLoraHooksNode(io.ComfyNode):
weights1, stack = _parse_strengths(clip_strength, {})
scaled_models = []
scaled_clips = []
if len(weights0) != len(weights1):
raise ValueError("model_strength and clip_strength must have the same number of elements. Model: {}, Clip: {}".format(len(weights0), len(weights1)))
for w0,w1 in zip(weights0, weights1):
scaled_model = model.clone()
scaled_clip = clip.clone()