multi_label burnin addition

This commit is contained in:
Glenn Jocher 2020-05-21 14:40:45 -07:00
parent 2cc2b2cf0d
commit 002884ae5e
2 changed files with 5 additions and 3 deletions

View File

@ -19,7 +19,8 @@ def test(cfg,
single_cls=False,
augment=False,
model=None,
dataloader=None):
dataloader=None,
multi_label=True):
# Initialize/load model and set device
if model is None:
device = torch_utils.select_device(opt.device, batch_size=batch_size)
@ -95,7 +96,7 @@ def test(cfg,
# Run NMS
t = torch_utils.time_synchronized()
output = non_max_suppression(inf_out, conf_thres=conf_thres, iou_thres=iou_thres) # nms
output = non_max_suppression(inf_out, conf_thres=conf_thres, iou_thres=iou_thres, multi_label=multi_label)
t1 += torch_utils.time_synchronized() - t
# Statistics per image

View File

@ -314,7 +314,8 @@ def train(hyp):
model=ema.ema,
save_json=final_epoch and is_coco,
single_cls=opt.single_cls,
dataloader=testloader)
dataloader=testloader,
multi_label=ni > n_burn)
# Write
with open(results_file, 'a') as f: