improve image gen display

This commit is contained in:
Concedo
2026-08-07 15:21:42 +08:00
parent d49b7a62e8
commit 569532f7e4
+5 -1
View File
@@ -315,7 +315,11 @@ static void progress_callback(int step, int steps, float time, void* data)
speed = 1.0f / speed;
unit = "it/s";
}
printf("\rGenerating image: %d/%d steps, %.2f%s%s", step, steps, speed, unit, step == steps ? "\n" : "");
if(step==1)
{
printf("\n");
}
printf("\rGenerating image: %d/%d steps, %.2f %s\033[K%s", step, steps, speed, unit, step == steps ? "\n" : "");
fflush(stdout);
}