This commit is contained in:
Glenn Jocher 2019-12-22 13:03:45 -08:00
parent 8aeef8da72
commit 5766b5c555
1 changed files with 2 additions and 2 deletions

View File

@ -88,8 +88,8 @@ def test(cfg,
if hasattr(model, 'hyp'): # if model has loss hyperparameters
loss += compute_loss(train_out, targets, model)[1][:3].cpu() # GIoU, obj, cls
# Run NMS
output = non_max_suppression(inf_out, conf_thres=conf_thres, nms_thres=nms_thres)
# Run NMS
output = non_max_suppression(inf_out, conf_thres=conf_thres, nms_thres=nms_thres)
# Statistics per image
for si, pred in enumerate(output):