From 8bb776fbc3007846d0058111daab949d9adba8a4 Mon Sep 17 00:00:00 2001 From: Laughing <61612323+Laughing-q@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:42:46 +0800 Subject: [PATCH] Fix `xywh` docstring (#15765) --- ultralytics/engine/results.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ultralytics/engine/results.py b/ultralytics/engine/results.py index 34a5d3e0..3c57d73a 100644 --- a/ultralytics/engine/results.py +++ b/ultralytics/engine/results.py @@ -992,8 +992,8 @@ class Boxes(BaseTensor): Convert bounding boxes from [x1, y1, x2, y2] format to [x, y, width, height] format. Returns: - (torch.Tensor | numpy.ndarray): Boxes in [x, y, width, height] format, where x, y are the coordinates of - the top-left corner of the bounding box, width, height are the dimensions of the bounding box and the + (torch.Tensor | numpy.ndarray): Boxes in [x_center, y_center, width, height] format, where x_center, y_center are the coordinates of + the center point of the bounding box, width, height are the dimensions of the bounding box and the shape of the returned tensor is (N, 4), where N is the number of boxes. Examples: