From 0b514daced65d8c44dbf9f6f6bfa9ca2a1de7324 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 15 Jun 2020 15:26:29 -0700 Subject: [PATCH] FP16 test loss bug fix --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()