mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
fix: honor the requested hires sampling step count (#2227)
This commit is contained in:
1 parent
2032526e8c
commit
9bfc4d1089
1 file changed
+1
-1
@@ -519,7 +519,7 @@ namespace sd::pipeline {
|
|||||||
scheduler,
|
scheduler,
|
||||||
sd->version,
|
sd->version,
|
||||||
sample_params.extra_sample_args);
|
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)) {
|
if (t_enc >= static_cast<size_t>(scheduler_steps)) {
|
||||||
t_enc = static_cast<size_t>(scheduler_steps) - 1;
|
t_enc = static_cast<size_t>(scheduler_steps) - 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user