From 47f265dde27d89cd1bd941bb9861a22334e2dcfa Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 24 Feb 2022 23:37:25 +0100 Subject: [PATCH] Update min warmup iterations from 1k to 100 (#6768) --- train.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train.py b/train.py index d8df31b72..60be962d4 100644 --- a/train.py +++ b/train.py @@ -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