-
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
Fix warmup lr #1079
base: master
Are you sure you want to change the base?
Fix warmup lr #1079
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1079 +/- ##
=======================================
Coverage 65.72% 65.72%
=======================================
Files 157 157
Lines 10092 10098 +6
Branches 1828 1830 +2
=======================================
+ Hits 6633 6637 +4
- Misses 3113 3115 +2
Partials 346 346
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
The lr schedule for ranger could be achieved by #1066 |
I think the lr functions in mmcv usually treat the beginning iteration as 1 (the first iteration) regardless of warmup. If you change it to the end of warmup iter, it might break the behavior of many other models. |
What I think is that this is a bug-fix-PR, not a feature enhancement PR. |
Not sure if it is a "bug fix", because it breaks the old behavior. |
Can you explain an example which is broken by this PR? |
Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.
Motivation
Fix bug when warmup by epoch.
Modification
When using the following
lr_config
, this is how ranger works.in the current implementations, it does not work as expected. it would decay the learning rate by cosine in second epoch.
this PR would fix the bug.