We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 966108a commit 09ae6a0Copy full SHA for 09ae6a0
torchvision/ops/boxes.py
@@ -392,7 +392,7 @@ def box_iou_xyxy(boxes1: Tensor, boxes2: Tensor) -> Tensor:
392
return iou
393
394
395
-def _box_inter_union_cxcywh(boxes1: Tensor, boxes2: Tensor) -> Tuple[Tensor, Tensor]:
+def _box_inter_union_cxcywh(boxes1: Tensor, boxes2: Tensor) -> tuple[Tensor, Tensor]:
396
area1 = box_area(boxes1, fmt="cxcywh")
397
area2 = box_area(boxes2, fmt="cxcywh")
398
0 commit comments