Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Jocher <[email protected]>
  • Loading branch information
glenn-jocher committed Sep 2, 2019
1 parent ea61b46 commit 2877ac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ def train():
for p in optimizer.param_groups:
# lower param count allows more aggressive training settings: i.e. SGD ~0.1 lr0, ~0.9 momentum
p['lr'] *= 100
p['momentum'] *= 0.9
if p.get('momentum') is not None: # for SGD but not Adam
p['momentum'] *= 0.9

for p in model.parameters():
if opt.prebias and p.numel() == nf: # train (yolo biases)
Expand Down

0 comments on commit 2877ac9

Please sign in to comment.