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]