ntsc207 commited on
Commit
1633956
·
verified ·
1 Parent(s): 8ce02a7

Update utils/general.py

Browse files
Files changed (1) hide show
  1. 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