Skip to content

Commit

Permalink
Added v8 parameter to edgetpumodel.py and nms.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfis committed Mar 24, 2024
1 parent 54a1c54 commit 18f6fa1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nms.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ def non_max_suppression(prediction, conf_thres=0.25, iou_thres=0.45, classes=Non
continue

# Compute conf
if v8:
x[:, 4:] *= x[:, 4]
else:
if not v8:
x[:, 5:] *= x[:, 4:5] # conf = obj_conf * cls_conf

# Box (center x, center y, width, height) to (x1, y1, x2, y2)
Expand Down

0 comments on commit 18f6fa1

Please sign in to comment.