diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2022-08-21 17:28:07 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2022-08-21 17:28:07 +0800 |
commit | 49822d3234cb67e4996ad13fdbc3c44e1a0bbf29 (patch) | |
tree | 6f6286045cd68de054a602587631a283c64aeb7d /libs/logging.py | |
parent | 4c242c1383afb8072ce6d2904f51cdb005eced4c (diff) |
Some modifications for PosRecon trainer
Diffstat (limited to 'libs/logging.py')
-rw-r--r-- | libs/logging.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/logging.py b/libs/logging.py index 3969ffa..6dfe5f9 100644 --- a/libs/logging.py +++ b/libs/logging.py @@ -113,7 +113,8 @@ def tensorboard_logger(function): for metric_name, metric_value in metrics.__dict__.items(): if metric_name not in metrics_exclude: if isinstance(metric_value, float): - logger.add_scalar(metric_name, metric_value, global_step + 1) + logger.add_scalar(metric_name.replace('_', '/', 1), + metric_value, global_step + 1) else: NotImplementedError(f"Unsupported type: '{type(metric_value)}'") return loggers, metrics |