-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
[Feature] Add OneCycleLrUpdaterHook #906
[Feature] Add OneCycleLrUpdaterHook #906
Conversation
mmcv/runner/hooks/lr_updater.py
Outdated
@@ -398,6 +399,124 @@ def get_lr(self, runner, base_lr): | |||
progress / (end_iter - start_iter)) | |||
|
|||
|
|||
@HOOKS.register_module() | |||
class OneCycleLrUpdaterHook(LrUpdaterHook): | |||
"""Cyclic LR Scheduler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One Cycle LR Scheduler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Codecov Report
@@ Coverage Diff @@
## master #906 +/- ##
==========================================
- Coverage 65.93% 64.61% -1.32%
==========================================
Files 147 148 +1
Lines 8992 9352 +360
Branches 1614 1698 +84
==========================================
+ Hits 5929 6043 +114
- Misses 2747 2962 +215
- Partials 316 347 +31
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Related Issue: #896