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
d834eed7
"ppocr/vscode:/vscode.git/clone" did not exist on "0fbcb520b1d772a5620955572fc2d15ece721fc4"
Commit
d834eed7
authored
Mar 15, 2023
by
comfyanonymous
Browse files
Fix bug when applying controlnet to negative prompt.
parent
494cfe54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nodes.py
nodes.py
+2
-2
No files found.
nodes.py
View file @
d834eed7
...
...
@@ -691,8 +691,8 @@ def common_ksampler(model, seed, steps, cfg, sampler_name, scheduler, positive,
if
t
.
shape
[
0
]
<
noise
.
shape
[
0
]:
t
=
torch
.
cat
([
t
]
*
noise
.
shape
[
0
])
t
=
t
.
to
(
device
)
if
'control'
in
p
[
1
]:
control_nets
+=
[
p
[
1
][
'control'
]]
if
'control'
in
n
[
1
]:
control_nets
+=
[
n
[
1
][
'control'
]]
negative_copy
+=
[[
t
]
+
n
[
1
:]]
control_net_models
=
[]
...
...
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