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
cfe1c54d
Commit
cfe1c54d
authored
Aug 31, 2023
by
comfyanonymous
Browse files
Fix controlnet issue.
parent
57beace3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
comfy/controlnet.py
comfy/controlnet.py
+1
-1
No files found.
comfy/controlnet.py
View file @
cfe1c54d
...
...
@@ -155,7 +155,7 @@ class ControlNet(ControlBase):
self
.
cond_hint
=
broadcast_image_to
(
self
.
cond_hint
,
x_noisy
.
shape
[
0
],
batched_number
)
context
=
torch
.
cat
(
cond
[
'c_crossattn'
]
,
1
)
context
=
cond
[
'c_crossattn'
]
y
=
cond
.
get
(
'c_adm'
,
None
)
if
y
is
not
None
:
y
=
y
.
to
(
self
.
control_model
.
dtype
)
...
...
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