Commit 9bfc4d1 for stable-diffusion.cpp
commit 9bfc4d108916c5cd3f0cd7c8206b41f169e33cd6
Author: project516 <138796702+Project516@users.noreply.github.com>
Date: Tue Oct 27 12:33:03 2026 -0500
fix: honor the requested hires sampling step count (#2227)
diff --git a/src/pipeline/request.cpp b/src/pipeline/request.cpp
index 2647efb..5f1f235 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<size_t>(scheduler_steps * hires.denoising_strength);
+ size_t t_enc = static_cast<size_t>(effective_steps - 1);
if (t_enc >= static_cast<size_t>(scheduler_steps)) {
t_enc = static_cast<size_t>(scheduler_steps) - 1;
}