Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
twotwo2 committed Aug 10, 2020
1 parent f3efa5f commit f61dd36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def build_opt_lr(model, current_epoch=0):
trainable_params += [{'params': model.car_head.parameters(),
'lr': cfg.TRAIN.BASE_LR}]

trainable_params += [{'params': model.down.parameters(),
'lr': cfg.TRAIN.BASE_LR}]
optimizer = torch.optim.SGD(trainable_params,
momentum=cfg.TRAIN.MOMENTUM,
weight_decay=cfg.TRAIN.WEIGHT_DECAY)
Expand Down

0 comments on commit f61dd36

Please sign in to comment.