We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d330d75 commit 8ea4772Copy full SHA for 8ea4772
torchvision/ops/boxes.py
@@ -78,7 +78,8 @@ def batched_nms(
78
_log_api_usage_once(batched_nms)
79
# Benchmarks that drove the following thresholds are at
80
# https://github.com/pytorch/vision/issues/1311#issuecomment-781329339
81
- if boxes.numel() > (4000 if boxes.device.type == "cpu" else 20000) and not torchvision._is_tracing():
+ # and https://github.com/pytorch/vision/pull/8925
82
+ if boxes.numel() > (4000 if boxes.device.type == "cpu" else 100_000) and not torchvision._is_tracing():
83
return _batched_nms_vanilla(boxes, scores, idxs, iou_threshold)
84
else:
85
return _batched_nms_coordinate_trick(boxes, scores, idxs, iou_threshold)
0 commit comments