mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
sd: set step as 0 for the first noisy preview (#2416)
The initial noisy preview is reported before denoising, so it shows the ongoing step number; but we immediately switch to denoised previews or progress callback info, which instead show concluded steps. So we currently report step '1' during the first two inference steps.
This commit is contained in:
@@ -1787,7 +1787,7 @@ static void step_callback(int step, int frame_count, sd_image_t* image, bool is_
|
||||
set_preview_images(0);
|
||||
}
|
||||
}
|
||||
geninfo.gendata.step = step;
|
||||
geninfo.gendata.step = is_noisy ? 0 : step;
|
||||
geninfo.gendata.step_time = step_time;
|
||||
should_encode_preview = !is_noisy && geninfo.preview_enabled;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user