瀏覽代碼

assert --epochs

5.0
Glenn Jocher 4 年之前
父節點
當前提交
3b16c865f0
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      train.py

+ 2
- 0
train.py 查看文件

@@ -134,6 +134,8 @@ def train(hyp):
file.write(ckpt['training_results']) # write results.txt

start_epoch = ckpt['epoch'] + 1
assert opt.epochs > start_epoch, '%s has already trained %g epochs. --epochs must be greater than %g' % \
(opt.weights, ckpt['epoch'], ckpt['epoch'])
del ckpt

# Mixed precision training https://github.com/NVIDIA/apex

Loading…
取消
儲存