mmcv
mmcv copied to clipboard
resume() overwrites new config
Checklist
- I have searched related issues but cannot get the expected help.
- I have read the FAQ documentation but cannot get the expected help.
- The unexpected results still exist in the latest version.
Describe the Issue
In runner.resume()
, meta
is overwritten by the one loaded from the checkpoint. When saving new checkpoints, the wrong old config is saved instead of the new one.
Reproduction
- train with config v1
- save checkpoint (v1 is saved)
- change config v1 -> v2
- resume train (meta.config is still v1)
- save checkpoint (bug here: v1 is saved)
- resume train (got v1)
Bug fix #1886
Good job! Thanks for your contribution~