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

[Enhancement] Add decay to cyclic LR #1059

Closed
wants to merge 3 commits into from

Conversation

hokmund
Copy link
Contributor

@hokmund hokmund commented May 29, 2021

Implements CLR policy mentioned #783

Parameter gamma allows to add decay to cycles of CLR. If gamma is set to a value between 0 and 1, each next cycle will peak at the lower value.

@CLAassistant
Copy link

CLAassistant commented May 29, 2021

CLA assistant check
All committers have signed the CLA.

@hokmund hokmund mentioned this pull request May 29, 2021
11 tasks
@zhouzaida
Copy link
Collaborator

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.
Copy link
Collaborator

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

append Default: 1.

@zhouzaida zhouzaida changed the title Add decay to cyclic LR [Enhancement] Add decay to cyclic LR Jun 3, 2021
@zhouzaida
Copy link
Collaborator

hi @hokmund , CI failed.

@zhouzaida
Copy link
Collaborator

hi @hokmund, do you have time to fix the CI and we want to merge the PR in the next verison

@HAOCHENYE HAOCHENYE mentioned this pull request Jan 10, 2022
7 tasks
@zhouzaida zhouzaida closed this Jan 13, 2022
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.

3 participants