Unverified 提交 47f265dd authored 作者: Glenn Jocher's avatar Glenn Jocher 提交者: GitHub

Update min warmup iterations from 1k to 100 (#6768)

上级 4bab5652
...@@ -268,7 +268,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary ...@@ -268,7 +268,7 @@ def train(hyp, # path/to/hyp.yaml or hyp dictionary
# Start training # Start training
t0 = time.time() 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 # nw = min(nw, (epochs - start_epoch) / 2 * nb) # limit warmup to < 1/2 of training
last_opt_step = -1 last_opt_step = -1
maps = np.zeros(nc) # mAP per class maps = np.zeros(nc) # mAP per class
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论