mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
set the initial color right
This commit is contained in:
@@ -87,9 +87,9 @@ class ConsoleLogger():
|
||||
diff = 0
|
||||
if self.old_eval_loss_dict is not None:
|
||||
diff = value - self.old_eval_loss_dict[key]
|
||||
if diff < 0:
|
||||
if diff <= 0:
|
||||
color = tcolors.OKGREEN
|
||||
sign = ''
|
||||
log_text += "{}{}:{} {:.5f} {}({}{:.5f})\n".format(indent, key, color, value, tcolors.ENDC, sign, diff)
|
||||
self.old_eval_loss_dict = avg_loss_dict
|
||||
print(log_text, flush=True)
|
||||
print(log_text, flush=True)
|
||||
|
||||
Reference in New Issue
Block a user