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