From b1a80f4d98c04da3039b345e1b137ae52afd2764 Mon Sep 17 00:00:00 2001 From: Jan Knobloch <116908874+jk4e@users.noreply.github.com> Date: Tue, 27 Aug 2024 21:05:33 +0200 Subject: [PATCH] Fix typo in docstring in `metrics.py` (#15842) Co-authored-by: Glenn Jocher --- ultralytics/utils/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ultralytics/utils/metrics.py b/ultralytics/utils/metrics.py index d92cc50cb..ec1295aef 100644 --- a/ultralytics/utils/metrics.py +++ b/ultralytics/utils/metrics.py @@ -178,7 +178,7 @@ def _get_covariance_matrix(boxes): boxes (torch.Tensor): A tensor of shape (N, 5) representing rotated bounding boxes, with xywhr format. Returns: - (torch.Tensor): Covariance metrixs corresponding to original rotated bounding boxes. + (torch.Tensor): Covariance matrices corresponding to original rotated bounding boxes. """ # Gaussian bounding boxes, ignore the center points (the first two columns) because they are not needed here. gbbs = torch.cat((boxes[:, 2:4].pow(2) / 12, boxes[:, 4:]), dim=-1)