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
c3db3447
Commit
c3db3447
authored
Jul 09, 2024
by
comfyanonymous
Browse files
Fix ConditioningZeroOut when there is no pooled output.
parent
d1600738
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
nodes.py
nodes.py
+3
-2
No files found.
nodes.py
View file @
c3db3447
...
@@ -232,8 +232,9 @@ class ConditioningZeroOut:
...
@@ -232,8 +232,9 @@ class ConditioningZeroOut:
c
=
[]
c
=
[]
for
t
in
conditioning
:
for
t
in
conditioning
:
d
=
t
[
1
].
copy
()
d
=
t
[
1
].
copy
()
if
"pooled_output"
in
d
:
pooled_output
=
d
.
get
(
"pooled_output"
,
None
)
d
[
"pooled_output"
]
=
torch
.
zeros_like
(
d
[
"pooled_output"
])
if
pooled_output
is
not
None
:
d
[
"pooled_output"
]
=
torch
.
zeros_like
(
pooled_output
)
n
=
[
torch
.
zeros_like
(
t
[
0
]),
d
]
n
=
[
torch
.
zeros_like
(
t
[
0
]),
d
]
c
.
append
(
n
)
c
.
append
(
n
)
return
(
c
,
)
return
(
c
,
)
...
...
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