Skip to content

sd: generation progress fixes - #2391

Open
wbruna wants to merge 2 commits into
LostRuins:concedo_experimentalfrom
wbruna:kcpp_sd_preview_fixes
Open

sd: generation progress fixes#2391
wbruna wants to merge 2 commits into
LostRuins:concedo_experimentalfrom
wbruna:kcpp_sd_preview_fixes

Conversation

@wbruna

@wbruna wbruna commented Aug 8, 2026

Copy link
Copy Markdown

The preview callback is not called if preview images are not enabled, so when a preview image wasn't requested, the step count wouldn't be updated. So move the update to the progress callback. Additionally, adjust the total step count when the progress call reports a lower total (e.g. for img2img).

Also remove the preview reset from inside the callback, since it often caused a preview miss, depending on when the next preview request arrived.

@wbruna

wbruna commented Aug 8, 2026

Copy link
Copy Markdown
Author

Progress is still broken for VAE tiling edit: fixed

@wbruna
wbruna force-pushed the kcpp_sd_preview_fixes branch from 2e16c4d to da9e8ee Compare August 9, 2026 03:01
wbruna added 2 commits August 10, 2026 16:50
The preview callback is not called if preview images are not enabled,
so when a preview image wasn't requested, the step count wouldn't be
updated. So move the update to the progress callback. Additionally,
adjust the total step count when the progress call reports a lower
total (e.g. for img2img).

Also remove the preview reset from inside the callback, since it
often caused a preview miss, depending on when the next preview
request arrived.
The progress callback is also called for VAE encoding and decoding,
receiving the number of tiles as step count, so there is no simple
way to detect the diffusion beginning. So we set up the first preview
callback to detect it, and transition to the decoding phase when
we reach the last step.
@wbruna
wbruna force-pushed the kcpp_sd_preview_fixes branch from da9e8ee to 4d43ce0 Compare August 10, 2026 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant