fix: cleanup comment

This commit is contained in:
Balthasar 2025-07-16 20:06:27 +02:00
parent 3f926c618a
commit a444b3bde8
1 changed files with 2 additions and 1 deletions

View File

@ -1232,7 +1232,8 @@ class MeanAveragePrecision(Metric):
else:
category_id = target[3].item()
# Use area from data if available (coco format), otherwise use Detections.area property
# Use area from data if available (e.g., COCO datasets)
# Otherwise use Detections.area property
area = data.get("area") if data else None
if area is None:
area = image_targets.area[target_idx]