Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrupczak3 committed Mar 3, 2024
1 parent 3f27231 commit 2004346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ def non_max_suppression(
"""

if isinstance(prediction, (list, tuple)): # YOLO model in validation model, output = (inference_out, loss_out)
prediction = prediction[0] # select only inference output
prediction = prediction[0][1] # select only inference output

device = prediction.device
mps = 'mps' in device.type # Apple MPS
Expand Down

0 comments on commit 2004346

Please sign in to comment.