Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
UltralyticsAssistant committed Jul 5, 2024
1 parent 142b625 commit 2110d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def build_targets(pred_boxes, pred_conf, pred_cls, target, anchor_wh, nA, nC, nG

def non_max_suppression(prediction, conf_thres=0.5, nms_thres=0.4, mat=None, img=None, model2=None, device="cpu"):
"""Performs Non-Maximum Suppression on detection results, filtering out low-confidence detections."""

prediction = prediction.cpu()
output = [None for _ in range(len(prediction))]
# Gather bbox priors
Expand Down

0 comments on commit 2110d64

Please sign in to comment.