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
281ad42d
Commit
281ad42d
authored
Jul 17, 2024
by
comfyanonymous
Browse files
Fix lowvram union controlnet bug.
parent
1cde6b2e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/cldm/cldm.py
comfy/cldm/cldm.py
+1
-1
No files found.
comfy/cldm/cldm.py
View file @
281ad42d
...
...
@@ -361,7 +361,7 @@ class ControlNet(nn.Module):
controlnet_cond
=
self
.
input_hint_block
(
hint
[
idx
],
emb
,
context
)
feat_seq
=
torch
.
mean
(
controlnet_cond
,
dim
=
(
2
,
3
))
if
idx
<
len
(
control_type
):
feat_seq
+=
self
.
task_embedding
[
control_type
[
idx
]]
feat_seq
+=
self
.
task_embedding
[
control_type
[
idx
]]
.
to
(
dtype
=
feat_seq
.
dtype
,
device
=
feat_seq
.
device
)
inputs
.
append
(
feat_seq
.
unsqueeze
(
1
))
condition_list
.
append
(
controlnet_cond
)
...
...
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