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
d644b6bc
Commit
d644b6bc
authored
Apr 07, 2024
by
comfyanonymous
Browse files
Cleanup some more conditioning nodes.
parent
c9fc242e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
nodes.py
nodes.py
+4
-14
No files found.
nodes.py
View file @
d644b6bc
...
...
@@ -251,13 +251,8 @@ class ConditioningSetTimestepRange:
CATEGORY
=
"advanced/conditioning"
def
set_range
(
self
,
conditioning
,
start
,
end
):
c
=
[]
for
t
in
conditioning
:
d
=
t
[
1
].
copy
()
d
[
'start_percent'
]
=
start
d
[
'end_percent'
]
=
end
n
=
[
t
[
0
],
d
]
c
.
append
(
n
)
c
=
node_helpers
.
conditioning_set_values
(
conditioning
,
{
"start_percent"
:
start
,
"end_percent"
:
end
})
return
(
c
,
)
class
VAEDecode
:
...
...
@@ -398,13 +393,8 @@ class InpaintModelConditioning:
out
=
[]
for
conditioning
in
[
positive
,
negative
]:
c
=
[]
for
t
in
conditioning
:
d
=
t
[
1
].
copy
()
d
[
"concat_latent_image"
]
=
concat_latent
d
[
"concat_mask"
]
=
mask
n
=
[
t
[
0
],
d
]
c
.
append
(
n
)
c
=
node_helpers
.
conditioning_set_values
(
conditioning
,
{
"concat_latent_image"
:
concat_latent
,
"concat_mask"
:
mask
})
out
.
append
(
c
)
return
(
out
[
0
],
out
[
1
],
out_latent
)
...
...
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