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 ddb6618 commit f3b94cfCopy full SHA for f3b94cf
torchvision/ops/boxes.py
@@ -78,6 +78,7 @@ 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
+ # 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:
0 commit comments