mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-28 11:11:21 +00:00
fix: honor the requested hires sampling step count (#2227)
This commit is contained in:
parent
2032526e8c
commit
9bfc4d1089
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue