Skip to content

Commit

Permalink
following discussion on #11
Browse files Browse the repository at this point in the history
  • Loading branch information
SkalskiP committed Feb 23, 2024
1 parent b2910e1 commit 1e33dbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def run(

# NMS
with dt[2]:
pred = non_max_suppression(pred[0][0], conf_thres, iou_thres, classes, agnostic_nms, max_det=max_det)
pred = pred[0][1] if isinstance(pred[0], list) else pred[0]
pred = non_max_suppression(pred, conf_thres, iou_thres, classes, agnostic_nms, max_det=max_det)

# Second-stage classifier (optional)
# pred = utils.general.apply_classifier(pred, classifier_model, im, im0s)
Expand Down

0 comments on commit 1e33dbb

Please sign in to comment.