mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-03-14 13:17:32 +00:00
Cleanup some more conditioning nodes.
This commit is contained in:
parent
c9fc242e2c
commit
d644b6bcd8
18
nodes.py
18
nodes.py
@ -251,13 +251,8 @@ class ConditioningSetTimestepRange:
|
|||||||
CATEGORY = "advanced/conditioning"
|
CATEGORY = "advanced/conditioning"
|
||||||
|
|
||||||
def set_range(self, conditioning, start, end):
|
def set_range(self, conditioning, start, end):
|
||||||
c = []
|
c = node_helpers.conditioning_set_values(conditioning, {"start_percent": start,
|
||||||
for t in conditioning:
|
"end_percent": end})
|
||||||
d = t[1].copy()
|
|
||||||
d['start_percent'] = start
|
|
||||||
d['end_percent'] = end
|
|
||||||
n = [t[0], d]
|
|
||||||
c.append(n)
|
|
||||||
return (c, )
|
return (c, )
|
||||||
|
|
||||||
class VAEDecode:
|
class VAEDecode:
|
||||||
@ -398,13 +393,8 @@ class InpaintModelConditioning:
|
|||||||
|
|
||||||
out = []
|
out = []
|
||||||
for conditioning in [positive, negative]:
|
for conditioning in [positive, negative]:
|
||||||
c = []
|
c = node_helpers.conditioning_set_values(conditioning, {"concat_latent_image": concat_latent,
|
||||||
for t in conditioning:
|
"concat_mask": mask})
|
||||||
d = t[1].copy()
|
|
||||||
d["concat_latent_image"] = concat_latent
|
|
||||||
d["concat_mask"] = mask
|
|
||||||
n = [t[0], d]
|
|
||||||
c.append(n)
|
|
||||||
out.append(c)
|
out.append(c)
|
||||||
return (out[0], out[1], out_latent)
|
return (out[0], out[1], out_latent)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user