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

Fix issue when using multiple t2i adapters with batched images.

parent 2c80d9ac
...@@ -126,7 +126,10 @@ class ControlBase: ...@@ -126,7 +126,10 @@ class ControlBase:
if o[i] is None: if o[i] is None:
o[i] = prev_val o[i] = prev_val
else: else:
o[i] += prev_val if o[i].shape[0] < prev_val.shape[0]:
o[i] = prev_val + o[i]
else:
o[i] += prev_val
return out return out
class ControlNet(ControlBase): class ControlNet(ControlBase):
......
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