diff --git a/test.py b/test.py index a9630fa..523c50c 100644 --- a/test.py +++ b/test.py @@ -104,7 +104,7 @@ def test(data, # Compute loss if training: # if model has loss hyperparameters - loss += compute_loss(train_out, targets, model)[1][:3] # GIoU, obj, cls + loss += compute_loss([x.float() for x in train_out], targets, model)[1][:3] # GIoU, obj, cls # Run NMS t = torch_utils.time_synchronized()