Browse Source

Fix issue when using multiple t2i adapters with batched images.

pull/2521/head
comfyanonymous 10 months ago
parent
commit
1a57423d30
  1. 3
      comfy/controlnet.py

3
comfy/controlnet.py

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

Loading…
Cancel
Save