Skip to content
Discussion options

You must be logged in to vote

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, calling compute() returns only the global dataset metrics, such as overall mAP, mAR, and optionally per-class results (with class_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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SkafteNicki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants