Skip to content

Commit

Permalink
Update min warmup iterations from 1k to 100 (#6768)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Feb 24, 2022
1 parent 4bab565 commit 47f265d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary

# Start training
t0 = time.time()
nw = max(round(hyp['warmup_epochs'] * nb), 1000) # number of warmup iterations, max(3 epochs, 1k iterations)
nw = max(round(hyp['warmup_epochs'] * nb), 100) # number of warmup iterations, max(3 epochs, 100 iterations)
# nw = min(nw, (epochs - start_epoch) / 2 * nb) # limit warmup to < 1/2 of training
last_opt_step = -1
maps = np.zeros(nc) # mAP per class
Expand Down

0 comments on commit 47f265d

Please sign in to comment.