Skip to content

Commit

Permalink
Fix arg typing
Browse files Browse the repository at this point in the history
  • Loading branch information
HonzaCuhel committed Aug 30, 2024
1 parent 01b6589 commit 7693b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions depthai_nodes/ml/parsers/utils/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def non_max_suppression(
max_nms: int = 30000,
max_wh: int = 7680,
kpts_mode: bool = False,
) -> list[np.ndarray]:
) -> List[np.ndarray]:
"""Performs Non-Maximum Suppression (NMS) on inference results.
@param prediction: Prediction from the model, shape = (batch_size, boxes, xy+wh+...)
Expand Down Expand Up @@ -79,7 +79,7 @@ def non_max_suppression(
@param kpts_mode: Keypoints mode.
@type kpts_mode: bool
@return: An array of detections with either kpts or segmentation outputs.
@rtype: list[np.ndarray]
@rtype: List[np.ndarray]
"""
bs = prediction.shape[0] # batch size
# Keypoints: 4 (bbox) + 1 (objectness) + 51 (kpts) = 56
Expand Down

0 comments on commit 7693b55

Please sign in to comment.