Merge pull request #235 from drozbay/main_pr_2

Fix for substep scheduling of patches with multiples conds
This commit is contained in:
Jukka Seppänen 2025-03-18 08:36:09 +02:00 committed by GitHub
commit e3b4bcf21e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -914,7 +914,7 @@ Official recommended values https://github.com/ali-vilab/TeaCache/tree/main/TeaC
else:
for i in range(len(sigmas) - 1):
# walk from beginning of steps until crossing the timestep
if (sigmas[i] - timestep) * (sigmas[i + 1] - timestep) <= 0:
if (sigmas[i] - timestep[0]) * (sigmas[i + 1] - timestep[0]) <= 0:
current_step_index = i
break
else:

View File

@ -2303,7 +2303,7 @@ class LeapfusionHunyuanI2V:
else:
for i in range(len(steps) - 1):
# walk from beginning of steps until crossing the timestep
if (steps[i] - timestep) * (steps[i + 1] - timestep) <= 0:
if (steps[i] - timestep[0]) * (steps[i + 1] - timestep[0]) <= 0:
current_step_index = i
break
else:
@ -2465,7 +2465,7 @@ class Guider_ScheduledCFG(CFGGuider):
else:
for i in range(len(steps) - 1):
# walk from beginning of steps until crossing the timestep
if (steps[i] - timestep) * (steps[i + 1] - timestep) <= 0:
if (steps[i] - timestep[0]) * (steps[i + 1] - timestep[0]) <= 0:
current_step_index = i
break
else: