fix: honor the requested hires sampling step count (#2227)

This commit is contained in:
project516 authored and GitHub committed 2026-10-28 01:33:03 +08:00
1 parent 2032526e8c
commit 9bfc4d1089
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}