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]