Commit 1a57423d authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix issue when using multiple t2i adapters with batched images.

parent 2c80d9ac
......@@ -125,6 +125,9 @@ class ControlBase:
elif prev_val is not None:
if o[i] is None:
o[i] = prev_val
else:
if o[i].shape[0] < prev_val.shape[0]:
o[i] = prev_val + o[i]
else:
o[i] += prev_val
return out
......
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