提交 01a73ec0 authored 作者: Glenn Jocher's avatar Glenn Jocher

multi-gpu ckpt filesize bug fix #253

上级 a5867519
...@@ -287,7 +287,7 @@ def train(hyp): ...@@ -287,7 +287,7 @@ def train(hyp):
scheduler.step() scheduler.step()
# mAP # mAP
ema.update_attr(model, include=['md', 'nc', 'hyp', 'names', 'stride']) ema.update_attr(model, include=['md', 'nc', 'hyp', 'gr', 'names', 'stride'])
final_epoch = epoch + 1 == epochs final_epoch = epoch + 1 == epochs
if not opt.notest or final_epoch: # Calculate mAP if not opt.notest or final_epoch: # Calculate mAP
results, maps, times = test.test(opt.data, results, maps, times = test.test(opt.data,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论