Skip to content

Commit

Permalink
Enhancment of coco evaluation scale_boxes function for yolox tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
Idan-BenAmi committed Sep 25, 2024
1 parent 23dc0d2 commit 04541d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def scale_boxes(boxes: np.ndarray, h_image: int, w_image: int, h_model: int, w_m
h_model (int): Model output height.
w_model (int): Model output width.
preserve_aspect_ratio (bool): Whether to preserve image aspect ratio during scaling
align_center (bool): Whether to keep the center during image rescaling
normalized (bool): Whether the output coordinates are normalized to the range of [0,1]
align_center (bool): Whether to center the bounding boxes after scaling
normalized (bool): Whether treats bounding box coordinates as normalized (i.e., in the range [0, 1])
Returns:
numpy.ndarray: Scaled and offset bounding boxes.
Expand Down

0 comments on commit 04541d3

Please sign in to comment.