Skip to content

Commit 966108a

Browse files
authored
Update boxes.py
1 parent be86a7b commit 966108a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

torchvision/ops/boxes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ def _box_inter_union_xyxy(boxes1: Tensor, boxes2: Tensor) -> tuple[Tensor, Tenso
360360
area1 = box_area(boxes1, fmt="xyxy")
361361
area2 = box_area(boxes2, fmt="xyxy")
362362

363-
364363
lt = torch.max(boxes1[:, None, :2], boxes2[:, :2]) # [N,M,2]
365364
rb = torch.min(boxes1[:, None, 2:], boxes2[:, 2:]) # [N,M,2]
366365

0 commit comments

Comments
 (0)