Fixed output of time_remaining for multi-GPU

This commit is contained in:
AlexeyAB 2020-05-06 04:52:41 +03:00
parent d4c10b0262
commit 08bc0c9373
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ void train_detector(char *datacfg, char *cfgfile, char *weightfile, int *gpus, i
draw_precision = 1;
}
time_remaining = (net.max_batches - iteration)*(what_time_is_it_now() - time + load_time) / 60 / 60;
time_remaining = ((net.max_batches - iteration) / ngpus)*(what_time_is_it_now() - time + load_time) / 60 / 60;
// set initial value, even if resume training from 10000 iteration
if (avg_time < 0) avg_time = time_remaining;
else avg_time = alpha_time * time_remaining + (1 - alpha_time) * avg_time;