From 997478a4cb4cd0979158cfde5055f939ad5fa884 Mon Sep 17 00:00:00 2001 From: vmobilis <75476228+vmobilis@users.noreply.github.com> Date: Thu, 29 Oct 2026 18:21:20 +0300 Subject: [PATCH] refactor: `make_hires_sigma_schedule()` simplification (#2244) --- src/pipeline/request.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pipeline/request.cpp b/src/pipeline/request.cpp index 5f1f235f..d333fbb8 100644 --- a/src/pipeline/request.cpp +++ b/src/pipeline/request.cpp @@ -519,14 +519,10 @@ namespace sd::pipeline { scheduler, sd->version, sample_params.extra_sample_args); - size_t t_enc = static_cast(effective_steps - 1); - if (t_enc >= static_cast(scheduler_steps)) { - t_enc = static_cast(scheduler_steps) - 1; - } if (scheduler_steps_out != nullptr) { *scheduler_steps_out = scheduler_steps; } - return std::vector(sigmas.begin() + scheduler_steps - static_cast(t_enc) - 1, + return std::vector(sigmas.begin() + std::max(0, scheduler_steps - effective_steps), sigmas.end()); }