This commit is contained in:
Glenn Jocher 2019-08-04 01:07:54 +02:00
parent 2ee16e8280
commit 1646b8de4b
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ def test(cfg,
# Compute loss # Compute loss
if hasattr(model, 'hyp'): # if model has loss hyperparameters if hasattr(model, 'hyp'): # if model has loss hyperparameters
loss += compute_loss(train_out, targets, model)[1][[0, 2, 3]] # GIoU, obj, cls loss += compute_loss(train_out, targets, model)[1][[0, 2, 3]].cpu() # GIoU, obj, cls
# Run NMS # Run NMS
output = non_max_suppression(inf_out, conf_thres=conf_thres, nms_thres=nms_thres) output = non_max_suppression(inf_out, conf_thres=conf_thres, nms_thres=nms_thres)