Skip to content

Commit

Permalink
MAINT: fix type.
Browse files Browse the repository at this point in the history
  • Loading branch information
Odd Kiva committed Dec 27, 2023
1 parent b20bf95 commit 5ffdb24
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_yolo_boxes(yolo_out: np.ndarray, yolo_layers: dict['str': Any],
boxes = [Box(*b) for b in boxes]
return boxes

def nms(boxes: [Box], iou_thres=0.4):
def nms(boxes: list[Box], iou_thres=0.4):
def compare(x: Box, y: Box):
return y.p_object - x.p_object
from functools import cmp_to_key
Expand Down

0 comments on commit 5ffdb24

Please sign in to comment.