This commit is contained in:
Adrian Corduneanu 2025-06-16 14:38:08 +09:00 committed by GitHub
commit 0e74467be4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -712,9 +712,9 @@ class FlowUniPCMultistepScheduler(SchedulerMixin, ConfigMixin):
self.timestep_list[-1] = timestep # pyright: ignore self.timestep_list[-1] = timestep # pyright: ignore
if self.config.lower_order_final: if self.config.lower_order_final:
this_order = min(self.config.solver_order, this_order = max(1, min(self.config.solver_order,
len(self.timesteps) - len(self.timesteps) -
self.step_index) # pyright: ignore self.step_index)) # pyright: ignore
else: else:
this_order = self.config.solver_order this_order = self.config.solver_order