Unverified 提交 7947c86b authored 作者: Glenn Jocher's avatar Glenn Jocher 提交者: GitHub

Update COCO train postprocessing (#1702)

上级 035ac82e
...@@ -402,15 +402,18 @@ def train(hyp, opt, device, tb_writer=None, wandb=None): ...@@ -402,15 +402,18 @@ def train(hyp, opt, device, tb_writer=None, wandb=None):
# Test best.pt # Test best.pt
if opt.data.endswith('coco.yaml') and nc == 80: # if COCO if opt.data.endswith('coco.yaml') and nc == 80: # if COCO
results, _, _ = test.test(opt.data, for conf, iou, save_json in ([0.25, 0.45, False], [0.001, 0.65, True]): # speed, mAP tests
batch_size=total_batch_size, results, _, _ = test.test(opt.data,
imgsz=imgsz_test, batch_size=total_batch_size,
model=attempt_load(best if best.exists() else last, device).half(), imgsz=imgsz_test,
single_cls=opt.single_cls, conf_thres=conf,
dataloader=testloader, iou_thres=iou,
save_dir=save_dir, model=attempt_load(best if best.exists() else last, device).half(),
save_json=True, # use pycocotools single_cls=opt.single_cls,
plots=False) dataloader=testloader,
save_dir=save_dir,
save_json=save_json,
plots=False)
else: else:
dist.destroy_process_group() dist.destroy_process_group()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论