Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Sep 29, 2019
1 parent f9241f8 commit 9a48f23
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 @@ -479,7 +479,7 @@ def non_max_suppression(prediction, conf_thres=0.5, nms_thres=0.5):

# Select predicted classes
class_conf = class_conf[i]
class_pred = class_pred[i].unsqueeze(1).type_as(class_conf)
class_pred = class_pred[i].unsqueeze(1).float()

# Box (center x, center y, width, height) to (x1, y1, x2, y2)
pred[:, :4] = xywh2xyxy(pred[:, :4])
Expand Down

0 comments on commit 9a48f23

Please sign in to comment.