mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-11 17:06:36 +08:00
fix last interval not being 1.0
This commit is contained in:
parent
7a47150e8e
commit
8a9de2c8b5
4
nodes.py
4
nodes.py
@ -288,6 +288,10 @@ class ConditioningTimestepInterpolate:
|
|||||||
start = i * interval_range
|
start = i * interval_range
|
||||||
end = (i + 1) * interval_range
|
end = (i + 1) * interval_range
|
||||||
|
|
||||||
|
# Ensure the last interval ends exactly at 1.0
|
||||||
|
if i == num_intervals - 1:
|
||||||
|
end = 1.0
|
||||||
|
|
||||||
if i % 2 == 0:
|
if i % 2 == 0:
|
||||||
conditioning_1_intervals.append(node_helpers.conditioning_set_values(conditioning_1, {"start_percent": start, "end_percent": end}))
|
conditioning_1_intervals.append(node_helpers.conditioning_set_values(conditioning_1, {"start_percent": start, "end_percent": end}))
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user