BoxList#
- class BoxList[source]#
Bases:
object- __init__(boxes: Tensor, format: str = 'xyxy', **extras) None[source]#
Representation of a list of bounding boxes and associated data.
Internally, boxes are always stored in the xyxy format.
Methods
__init__(boxes[, format])Representation of a list of bounding boxes and associated data.
cat(box_lists)clip_boxes(img_height, img_width)convert_boxes(out_fmt)copy()equal(other)get_field(name)ind_filter(inds)nms([iou_thresh])scale(yscale, xscale)Scale box coords by the given scaling factors.
score_filter([score_thresh])to(*args, **kwargs)Recursively apply
torch.Tensor.to()to Tensors.- __init__(boxes: Tensor, format: str = 'xyxy', **extras) None[source]#
Representation of a list of bounding boxes and associated data.
Internally, boxes are always stored in the xyxy format.
- static cat(box_lists: Iterable[Self]) Self[source]#
- Parameters:
box_lists (Iterable[Self]) –
- Return type:
Self
- score_filter(score_thresh: float = 0.25) Self[source]#
- Parameters:
score_thresh (float) –
- Return type:
Self
- to(*args, **kwargs) Self[source]#
Recursively apply
torch.Tensor.to()to Tensors.- Parameters:
*args – Args for
torch.Tensor.to().**kwargs – Keyword args for
torch.Tensor.to().
- Returns:
New BoxList with to’d Tensors.
- Return type: