Fix issue when using multiple t2i adapters with batched images.

This commit is contained in:
comfyanonymous 2024-01-10 04:00:49 -05:00
parent 2c80d9acb9
commit 1a57423d30

View File

@ -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