There was an issue when resuming training on theses Hooks (RTMOModeSwitchHook, YOLOXPoseModeSwitchHook).
These hooks were not triggered when resuming training because they required the training to go over each specific epoch.
Motivation
Fix the issue
Modification
Add logic to handle the resume, It now applies the switch mode in order until it reach the resumed epoch.
Checklist
Before PR:
[X] I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
[X] Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
[x] Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
[x] New functionalities are covered by complete unit tests. If not, please add more unit tests to ensure correctness.
[x] The documentation has been modified accordingly, including docstring or example tutorials.
After PR:
[x] CLA has been signed and all committers have signed the CLA in this PR.
There was an issue when resuming training on theses Hooks (RTMOModeSwitchHook, YOLOXPoseModeSwitchHook). These hooks were not triggered when resuming training because they required the training to go over each specific epoch.
Motivation
Fix the issue
Modification
Add logic to handle the resume, It now applies the switch mode in order until it reach the resumed epoch.
Checklist
Before PR:
After PR: