-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: 0.5/0.75 is not in list
- when passing a custom set of IoU thresholds to MeanAveragePrecision
#994
Comments
I am facing the same issue when passing a single threshold, which I need to do some error analysis. The easiest solution could be to return A more neat approach could be to have an optional argument at the beginning set by default at I can try and implement the solution and submit a PR. Ideally I would do the former (with the -1) as I am a bit budgeted in time but if you think the later is what should be there I can try to give it a go too. |
Hi @Chris-hughes10 and @bepuca, |
Thank you very much for such a quick response @SkafteNicki ! |
I know the issue is closed, but I am wondering, how can I get the mAP for a custom IOU threshold = 0.25 for example? The resulting dict from map from the fix still gives the following format. Is the mAP calculated for a custom IOU (for example = 0.25) internally?
|
🐛 Bug
When I try to use
MeanAveragePrecision
to compute the mAP over a custom range of IoU thresholds, a value error is thrown if0.5
and0.75
are not included in the list.This is due to these values being hardcoded here.
To Reproduce
Steps to reproduce the behavior...
Code sample
Expected behavior
Ideally, I would like to be able to calculate mAP using any custom range of IoU values, or even a single value if it is passed as a list (e.g.
[0.4]
). Although this is a departure from the pycoctools implementation, this would make this metric well suited to use cases outside of the coco competition.At a minimum, this restriction should be documented, and the error should be handled more gracefully.
Environment
conda
,pip
, build command if you used source): condaThe text was updated successfully, but these errors were encountered: