-
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
[Enhancement] Add decay to cyclic LR #1059
Conversation
We should add unittest to check whether gamma works as we expected. |
@@ -366,15 +366,16 @@ class CyclicLrUpdaterHook(LrUpdaterHook): | |||
3D detection area. | |||
|
|||
Args: | |||
by_epoch (bool): Whether to update LR by epoch. | |||
target_ratio (tuple[float]): Relative ratio of the highest LR and the | |||
by_epoch (bool, optional): Whether to update LR by epoch. |
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.
please add Default: False.
lowest LR to the initial LR. | ||
cyclic_times (int): Number of cycles during training | ||
step_ratio_up (float): The ratio of the increasing process of LR in | ||
cyclic_times (int, optional): Number of cycles during training |
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.
append Default: 1.
hi @hokmund , CI failed. |
hi @hokmund, do you have time to fix the CI and we want to merge the PR in the next verison |
Implements CLR policy mentioned #783
Parameter
gamma
allows to add decay to cycles of CLR. Ifgamma
is set to a value between 0 and 1, each next cycle will peak at the lower value.