瀏覽代碼

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

modifyDataloader
Glenn Jocher GitHub 2 年之前
父節點
當前提交
47f265dde2
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      train.py

+ 1
- 1
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

Loading…
取消
儲存