Skip to content

Commit

Permalink
fix lr warmup
Browse files Browse the repository at this point in the history
  • Loading branch information
jianzfb committed Sep 10, 2024
1 parent 58def8c commit 88cdd50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions antgo/framework/helper/runner/hooks/lr_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self,
warmup=None,
warmup_iters=0,
warmup_ratio=0.1,
warmup_by_epoch=False, begin=None, end=None, **kwargs):
begin=None, end=None, **kwargs):
# validate the "warmup" argument
if warmup is not None:
if warmup not in ['constant', 'linear', 'exp']:
Expand All @@ -42,7 +42,7 @@ def __init__(self,
self.warmup = warmup
self.warmup_iters = warmup_iters
self.warmup_ratio = warmup_ratio
self.warmup_by_epoch = warmup_by_epoch
self.warmup_by_epoch = by_epoch # warmup_by_epoch 和 by_epoch保持一致
self.begin = begin
self.end = end

Expand Down

0 comments on commit 88cdd50

Please sign in to comment.