Update results.boxes docs: boxes.id may be None (#19227)

Signed-off-by: Shankang Ke <ke@shankang.com>
This commit is contained in:
Shankang Ke 2025-02-13 20:58:16 +08:00 committed by GitHub
parent f4114b0319
commit d317b26940
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1016,7 +1016,7 @@ class Boxes(BaseTensor):
xyxy (torch.Tensor | numpy.ndarray): Boxes in [x1, y1, x2, y2] format.
conf (torch.Tensor | numpy.ndarray): Confidence scores for each box.
cls (torch.Tensor | numpy.ndarray): Class labels for each box.
id (torch.Tensor | numpy.ndarray): Tracking IDs for each box (if available).
id (torch.Tensor | None): Tracking IDs for each box (if available).
xywh (torch.Tensor | numpy.ndarray): Boxes in [x, y, width, height] format.
xyxyn (torch.Tensor | numpy.ndarray): Normalized [x1, y1, x2, y2] boxes relative to orig_shape.
xywhn (torch.Tensor | numpy.ndarray): Normalized [x, y, width, height] boxes relative to orig_shape.