Skip to content

Commit

Permalink
[Fix] Fix bug: Resume can not work. (#820)
Browse files Browse the repository at this point in the history
The first line of cfg.text is the config filename, which will not be parsed by this line:
https://github.com/open-mmlab/mmcv/blob/de4f14e9cd547fb8bf886a362ad4f02a0be95141/mmcv/runner/base_runner.py#L346

Use cfg.pretty_text instead.
  • Loading branch information
kennymckormick authored Apr 19, 2021
1 parent be2147c commit c96ec7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def main():

# log some basic info
logger.info(f'Distributed training: {distributed}')
logger.info(f'Config: {cfg.text}')
logger.info(f'Config: {cfg.pretty_text}')

# set random seeds
if args.seed is not None:
Expand Down

0 comments on commit c96ec7d

Please # to comment.