mirror of
https://github.com/open-mmlab/mmcv.git
synced 2025-06-03 21:54:52 +08:00
Fix fstring in TextLoggerHook (#257)
This commit is contained in:
parent
45a39dc6a8
commit
f97a8b37ac
@ -53,7 +53,7 @@ class TextLoggerHook(LoggerHook):
|
||||
if torch.cuda.is_available():
|
||||
log_str += f'memory: {log_dict["memory"]}, '
|
||||
else:
|
||||
log_str = 'Epoch({log_dict["mode"]}) ' \
|
||||
log_str = f'Epoch({log_dict["mode"]}) ' \
|
||||
f'[{log_dict["epoch"] - 1}][{log_dict["iter"]}]\t'
|
||||
log_items = []
|
||||
for name, val in log_dict.items():
|
||||
|
Loading…
x
Reference in New Issue
Block a user