Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
1a57423d
Commit
1a57423d
authored
Jan 10, 2024
by
comfyanonymous
Browse files
Fix issue when using multiple t2i adapters with batched images.
parent
2c80d9ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
comfy/controlnet.py
comfy/controlnet.py
+4
-1
No files found.
comfy/controlnet.py
View file @
1a57423d
...
...
@@ -126,7 +126,10 @@ class ControlBase:
if
o
[
i
]
is
None
:
o
[
i
]
=
prev_val
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
class
ControlNet
(
ControlBase
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment