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
fff491b0
"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "257c2eaaa47c5ead6849e4e0f8210be3dc112f1d"
Commit
fff491b0
authored
Sep 27, 2023
by
comfyanonymous
Browse files
Model patches can now know which batch is positive and negative.
parent
1d6dd831
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
comfy/ldm/modules/attention.py
comfy/ldm/modules/attention.py
+2
-0
No files found.
comfy/ldm/modules/attention.py
View file @
fff491b0
...
@@ -538,6 +538,8 @@ class BasicTransformerBlock(nn.Module):
...
@@ -538,6 +538,8 @@ class BasicTransformerBlock(nn.Module):
if
"block"
in
transformer_options
:
if
"block"
in
transformer_options
:
block
=
transformer_options
[
"block"
]
block
=
transformer_options
[
"block"
]
extra_options
[
"block"
]
=
block
extra_options
[
"block"
]
=
block
if
"cond_or_uncond"
in
transformer_options
:
extra_options
[
"cond_or_uncond"
]
=
transformer_options
[
"cond_or_uncond"
]
if
"patches"
in
transformer_options
:
if
"patches"
in
transformer_options
:
transformer_patches
=
transformer_options
[
"patches"
]
transformer_patches
=
transformer_options
[
"patches"
]
else
:
else
:
...
...
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