Spaces:
Running
on
Zero
Running
on
Zero
Update utils/general.py
Browse files- utils/general.py +1 -1
utils/general.py
CHANGED
@@ -990,7 +990,7 @@ def non_max_suppression(
|
|
990 |
"""
|
991 |
|
992 |
if isinstance(prediction, (list, tuple)): # YOLO model in validation model, output = (inference_out, loss_out)
|
993 |
-
prediction = prediction[0] # select only inference output
|
994 |
|
995 |
|
996 |
device = prediction.device
|
|
|
990 |
"""
|
991 |
|
992 |
if isinstance(prediction, (list, tuple)): # YOLO model in validation model, output = (inference_out, loss_out)
|
993 |
+
prediction = prediction[0][0] # select only inference output
|
994 |
|
995 |
|
996 |
device = prediction.device
|