sd: fix progress report for second order samplers (#2403)

Each first half step is reported as negative.
This commit is contained in:
Wagner Bruna
2026-08-18 07:18:58 -03:00
committed by GitHub
parent c27396c8be
commit 493f6e6d9c
+2
View File
@@ -308,6 +308,7 @@ static inline double get_time_delta(const std::chrono::steady_clock::time_point&
static void progress_callback(int step, int steps, float time, void* data)
{
step = step < 0 ? -step : step;
(void) data;
const char* phase = "Encoding";
{
@@ -1771,6 +1772,7 @@ sd_generation_outputs sdtype_generate(const sd_generation_inputs inputs)
static void step_callback(int step, int frame_count, sd_image_t* image, bool is_noisy, void* data)
{
step = step < 0 ? -step : step;
std::lock_guard<std::mutex> lock(geninfo.mux);
double step_time = get_time_delta(geninfo.start_time);