Is there a way to rapidly calculate the mAP for each image? #1073
-
|
Hi, I'd like to log the mAP for each image in my object detection dataset, and as far as I can tell, the only way to do that is to run |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The latest TorchMetrics documentation shows that mAP is calculated using |
Beta Was this translation helpful? Give feedback.
The latest TorchMetrics documentation shows that mAP is calculated using
MeanAveragePrecision, with predictions and targets provided as lists of dictionaries—each dictionary corresponding to one image. By default, callingcompute()returns only the global dataset metrics, such as overall mAP, mAR, and optionally per-class results (withclass_metrics=True). There is currently no setting that returns separate mAP values for each image directly—mAP is inherently a dataset-level metric and not naturally defined per image. The returned metrics are aggregated over all images.If you need to obtain mAP for each image, you do need to call the metric (either via the functional interface or by inst…