remove_small_boxes¶
- torchvision.ops.remove_small_boxes(boxes: Tensor, min_size: float) Tensor [源代码]¶
从
boxes
中移除所有至少有一条边长度小于min_size
的框。注意
为了对
BoundingBoxes
对象进行消毒,请考虑改用SanitizeBoundingBoxes()
变换。- 参数:
boxes (Tensor[..., 4]) – 格式为
(x1, y1, x2, y2)
的框,其中0 <= x1 < x2
和0 <= y1 < y2
。min_size (float) – 最小尺寸
- 返回:
两条边都大于
min_size
的框的索引- 返回类型:
Tensor[K]