Skip to content

Commit

Permalink
perf(parser): 根据学习率线性缩放规则,分布式训练时仅改变学习率的大小
Browse files Browse the repository at this point in the history
  • Loading branch information
zjykzj committed Nov 5, 2020
1 parent ea7b99f commit d518e3d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tsn/util/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@ def load_train_config(args):
num_gpus = cfg.NUM_GPUS
if num_gpus > 1:
cfg.OPTIMIZER.LR *= num_gpus
cfg.OPTIMIZER.WEIGHT_DECAY *= num_gpus
cfg.LR_SCHEDULER.COSINE_ANNEALING_LR.MINIMAL_LR *= num_gpus

cfg.freeze()

Expand Down

0 comments on commit d518e3d

Please sign in to comment.