From 1c9bd2174185daa35eab4e71fbfe399bd9dec46a Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 16 Jun 2017 15:45:55 +0200 Subject: [PATCH] Minor ETA fix. --- cnn-svrt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cnn-svrt.py b/cnn-svrt.py index 06e58bd..592f982 100755 --- a/cnn-svrt.py +++ b/cnn-svrt.py @@ -159,7 +159,7 @@ def train_model(model, train_set): loss.backward() optimizer.step() log_string('train_loss {:d} {:f}'.format(e + 1, acc_loss)) - dt = (time.time() - t) / (e + 1) + dt = (time.time() - start_t) / (e + 1) print(Fore.CYAN + 'ETA ' + time.ctime(time.time() + dt * (args.nb_epochs - e)) + Style.RESET_ALL) return model -- 2.39.5