From 673148b567159853acb02c08431f53fcee5c5005 Mon Sep 17 00:00:00 2001 From: thllwg Date: Tue, 7 Jul 2020 22:00:02 +0200 Subject: [PATCH] Fix: Logger prints epoch instead of epoch_time --- utils/console_logger.py | 2 +- vocoder/utils/console_logger.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/console_logger.py b/utils/console_logger.py index 0b361bb8..39da8b08 100644 --- a/utils/console_logger.py +++ b/utils/console_logger.py @@ -56,7 +56,7 @@ class ConsoleLogger(): def print_train_epoch_end(self, global_step, epoch, epoch_time, print_dict): indent = " | > " - log_text = f"\n{tcolors.BOLD} --> TRAIN PERFORMACE -- EPOCH TIME: {epoch} sec -- GLOBAL_STEP: {global_step}{tcolors.ENDC}\n" + log_text = f"\n{tcolors.BOLD} --> TRAIN PERFORMACE -- EPOCH TIME: {epoch_time} sec -- GLOBAL_STEP: {global_step}{tcolors.ENDC}\n" for key, value in print_dict.items(): log_text += "{}{}: {:.5f}\n".format(indent, key, value) print(log_text, flush=True) diff --git a/vocoder/utils/console_logger.py b/vocoder/utils/console_logger.py index 4f44986c..71181956 100644 --- a/vocoder/utils/console_logger.py +++ b/vocoder/utils/console_logger.py @@ -55,7 +55,7 @@ class ConsoleLogger(): def print_train_epoch_end(self, global_step, epoch, epoch_time, print_dict): indent = " | > " - log_text = f"\n{tcolors.BOLD} --> TRAIN PERFORMACE -- EPOCH TIME: {epoch} sec -- GLOBAL_STEP: {global_step}{tcolors.ENDC}\n" + log_text = f"\n{tcolors.BOLD} --> TRAIN PERFORMACE -- EPOCH TIME: {epoch_time} sec -- GLOBAL_STEP: {global_step}{tcolors.ENDC}\n" for key, value in print_dict.items(): log_text += "{}{}: {:.5f}\n".format(indent, key, value) print(log_text, flush=True)