mirror of https://github.com/coqui-ai/TTS.git
update console logger
This commit is contained in:
parent
2ac6b824ca
commit
570633ab80
|
@ -68,11 +68,10 @@ class ConsoleLogger:
|
||||||
print(log_text, flush=True)
|
print(log_text, flush=True)
|
||||||
|
|
||||||
def print_eval_start(self):
|
def print_eval_start(self):
|
||||||
print(f"{tcolors.BOLD} > EVALUATION {tcolors.ENDC}\n")
|
print(f"\n{tcolors.BOLD} > EVALUATION {tcolors.ENDC}\n")
|
||||||
|
|
||||||
def print_eval_step(self, step, loss_dict, avg_loss_dict):
|
def print_eval_step(self, step, loss_dict, avg_loss_dict):
|
||||||
indent = " | > "
|
indent = " | > "
|
||||||
print()
|
|
||||||
log_text = f"{tcolors.BOLD} --> STEP: {step}{tcolors.ENDC}\n"
|
log_text = f"{tcolors.BOLD} --> STEP: {step}{tcolors.ENDC}\n"
|
||||||
for key, value in loss_dict.items():
|
for key, value in loss_dict.items():
|
||||||
# print the avg value if given
|
# print the avg value if given
|
||||||
|
@ -84,7 +83,7 @@ class ConsoleLogger:
|
||||||
|
|
||||||
def print_epoch_end(self, epoch, avg_loss_dict):
|
def print_epoch_end(self, epoch, avg_loss_dict):
|
||||||
indent = " | > "
|
indent = " | > "
|
||||||
log_text = " {}--> EVAL PERFORMANCE{}\n".format(tcolors.BOLD, tcolors.ENDC)
|
log_text = "\n {}--> EVAL PERFORMANCE{}\n".format(tcolors.BOLD, tcolors.ENDC)
|
||||||
for key, value in avg_loss_dict.items():
|
for key, value in avg_loss_dict.items():
|
||||||
# print the avg value if given
|
# print the avg value if given
|
||||||
color = ""
|
color = ""
|
||||||
|
|
Loading…
Reference in New Issue