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

This commit is contained in:
project516 2026-10-27 12:33:03 -05:00 • committed by GitHub
parent 2032526e8c
commit 9bfc4d1089
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}