File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -469,10 +469,17 @@ struct FluxFlowDenoiser : public Denoiser {
469
469
typedef std::function<ggml_tensor*(ggml_tensor*, float , int )> denoise_cb_t ;
470
470
471
471
static inline void show_step (int i0, int im, int64_t * t0) {
472
+ #ifdef SD_SHOW_REMAINING_TIME
473
+ int i = i0 + 1 ;
474
+ float t1 = (ggml_time_us () - *t0) / 1000000 .f / i;
475
+ pretty_progress (i, im, t1, t1 * (im - i));
476
+ // LOG_INFO("step %d sampling completed taking %.2fs", i, (t1 - *t0) * 1.0f / 1000000 / i);
477
+ #else // SD_SHOW_REMAINING_TIME
472
478
int64_t t1 = ggml_time_us ();
473
479
pretty_progress (i0 + 1 , im, (t1 - *t0) / 1000000 .f );
474
480
// LOG_INFO("step %d sampling completed taking %.2fs", i0 + 1, (t1 - *t0) * 1.0f / 1000000);
475
481
*t0 = t1;
482
+ #endif // SD_SHOW_REMAINING_TIME
476
483
}
477
484
478
485
// k diffusion reverse ODE: dx = (x - D(x;\sigma)) / \sigma dt; \sigma(t) = t
You can’t perform that action at this time.
0 commit comments