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
51df8465
"...git@developer.sourcefind.cn:wangsen/paddle_dbnet.git" did not exist on "0d7ee968077096cb010896e28061bc4bcb2eb40a"
Commit
51df8465
authored
Mar 02, 2024
by
comfyanonymous
Browse files
Let conditioning specify custom concat conds.
parent
9f71e4b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
comfy/model_base.py
comfy/model_base.py
+4
-0
No files found.
comfy/model_base.py
View file @
51df8465
...
@@ -167,6 +167,10 @@ class BaseModel(torch.nn.Module):
...
@@ -167,6 +167,10 @@ class BaseModel(torch.nn.Module):
if
cross_attn_cnet
is
not
None
:
if
cross_attn_cnet
is
not
None
:
out
[
'crossattn_controlnet'
]
=
comfy
.
conds
.
CONDCrossAttn
(
cross_attn_cnet
)
out
[
'crossattn_controlnet'
]
=
comfy
.
conds
.
CONDCrossAttn
(
cross_attn_cnet
)
c_concat
=
kwargs
.
get
(
"noise_concat"
,
None
)
if
c_concat
is
not
None
:
out
[
'c_concat'
]
=
comfy
.
conds
.
CONDNoiseShape
(
data
)
return
out
return
out
def
load_model_weights
(
self
,
sd
,
unet_prefix
=
""
):
def
load_model_weights
(
self
,
sd
,
unet_prefix
=
""
):
...
...
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