소스 검색

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

modifyDataloader
Glenn Jocher GitHub 2 년 전
부모
커밋
47f265dde2
No known key found for this signature in database GPG Key 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…
취소
저장