From c96ec7dcee5e63a145660dac3bb86c9389bfe569 Mon Sep 17 00:00:00 2001 From: Haodong Duan <34324155+kennymckormick@users.noreply.github.com> Date: Mon, 19 Apr 2021 13:53:46 +0800 Subject: [PATCH] [Fix] Fix bug: Resume can not work. (#820) 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. --- tools/train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/train.py b/tools/train.py index 9b0e67416a..08a768770f 100644 --- a/tools/train.py +++ b/tools/train.py @@ -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: