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

Signed-off-by: Shankang Ke <ke@shankang.com>
pull/18350/head^2
Shankang Ke 4 weeks ago committed by GitHub
parent f4114b0319
commit d317b26940
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ultralytics/engine/results.py

@ -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.

Loading…
Cancel
Save