From 9bfc4d108916c5cd3f0cd7c8206b41f169e33cd6 Mon Sep 17 00:00:00 2001 From: project516 <138796702+Project516@users.noreply.github.com> Date: Tue, 27 Oct 2026 12:33:03 -0500 Subject: [PATCH] fix: honor the requested hires sampling step count (#2227) --- src/pipeline/request.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipeline/request.cpp b/src/pipeline/request.cpp index 2647efb8..5f1f235f 100644 --- a/src/pipeline/request.cpp +++ b/src/pipeline/request.cpp @@ -519,7 +519,7 @@ namespace sd::pipeline { scheduler, sd->version, sample_params.extra_sample_args); - size_t t_enc = static_cast(scheduler_steps * hires.denoising_strength); + size_t t_enc = static_cast(effective_steps - 1); if (t_enc >= static_cast(scheduler_steps)) { t_enc = static_cast(scheduler_steps) - 1; }