Open Tim-Hung opened 2 years ago
Unfortunately I do not think mmdet supports this - I also wanted this feature and looked for it.
See https://github.com/open-mmlab/mmcv/blob/master/mmcv/runner/hooks/checkpoint.py#L10
Unfortunately I do not think mmdet supports this - I also wanted this feature and looked for it.
See https://github.com/open-mmlab/mmcv/blob/master/mmcv/runner/hooks/checkpoint.py#L10
Hi @phelps-matthew , thanks for your response.
I think this feature is supported in EvalHook
. Please see https://github.com/open-mmlab/mmcv/blob/master/mmcv/runner/hooks/evaluation.py#L33
In Soft Teacher project, the author write the new SubModulesDistEvalHook
inherited from 2 files, mmdet.core.evaluation.eval_hooks.py - DistEvalHook & mmcv.runner.hooks.evaluation.py - DistEvalHook
So I think it should support save_best
mode and I was missing something to use this feature.
Thanks for the great works. I meet some question for evaluation hook.
I want to save the best checkpoint for my model during the training, so I add the argument in config file.
The original evaluation hook in config file is:
evaluation = dict(type="SubModulesDistEvalHook", interval=50)
I add the argument for evaluation hook as below:
evaluation = dict(type="SubModulesDistEvalHook",save_best='auto',interval=50)
However, I get the error as below:
Does this SubModulesDistEvalHook support save_best mode?
Do you mind pointing me that where I should fix this? Thanks.