Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: handle resume on RTMOModeSwitchHook and YOLOXPoseModeSwitchHook #3045

Open
wants to merge 3 commits into
base: dev-1.x
Choose a base branch
from

Conversation

drazicmartin
Copy link

@drazicmartin drazicmartin commented May 14, 2024

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:

  • I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
  • Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
  • Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests.
  • New functionalities are covered by complete unit tests. If not, please add more unit tests to ensure correctness.
  • The documentation has been modified accordingly, including docstring or example tutorials.

After PR:

  • CLA has been signed and all committers have signed the CLA in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants