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
78d8035f
Commit
78d8035f
authored
Jun 24, 2023
by
comfyanonymous
Browse files
Fix bug with controlnet.
parent
c9f5d5b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
comfy/ldm/modules/attention.py
comfy/ldm/modules/attention.py
+4
-1
No files found.
comfy/ldm/modules/attention.py
View file @
78d8035f
...
@@ -565,7 +565,10 @@ class BasicTransformerBlock(nn.Module):
...
@@ -565,7 +565,10 @@ class BasicTransformerBlock(nn.Module):
for
p
in
patch
:
for
p
in
patch
:
n
,
context_attn1
,
value_attn1
=
p
(
n
,
context_attn1
,
value_attn1
,
extra_options
)
n
,
context_attn1
,
value_attn1
=
p
(
n
,
context_attn1
,
value_attn1
,
extra_options
)
transformer_block
=
(
block
[
0
],
block
[
1
],
block_index
)
if
block
is
not
None
:
transformer_block
=
(
block
[
0
],
block
[
1
],
block_index
)
else
:
transformer_block
=
None
attn1_replace_patch
=
transformer_patches_replace
.
get
(
"attn1"
,
{})
attn1_replace_patch
=
transformer_patches_replace
.
get
(
"attn1"
,
{})
block_attn1
=
transformer_block
block_attn1
=
transformer_block
if
block_attn1
not
in
attn1_replace_patch
:
if
block_attn1
not
in
attn1_replace_patch
:
...
...
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