快速連結

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 < x20 <= y1 < y2

  • min_size (float) – 最小尺寸

返回:

兩個邊都大於 min_size 的框的索引

返回類型:

Tensor[K]

文件

存取 PyTorch 的完整開發人員文件

檢視文件

教學

取得針對初學者和進階開發人員的深入教學

檢視教學

資源

尋找開發資源並獲得問題解答

檢視資源