Skip to content

Commit

Permalink
fix lint errors in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
huaibovip committed Aug 16, 2023
1 parent 73a9cd3 commit 1eb8250
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmengine/runner/log_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ def _collect_scalars(self,
data_src = log_cfg.pop('data_src')
log_name = log_cfg.pop('log_name', data_src)
if reserve_prefix:
data_src = f"{mode}/{data_src}"
log_name = f"{mode}/{log_name}"
data_src = f'{mode}/{data_src}'
log_name = f'{mode}/{log_name}'
# log item in custom_cfg could only exist in train or val
# mode.
if data_src in mode_history_scalars:
Expand Down

0 comments on commit 1eb8250

Please sign in to comment.