Skip to content
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

How to get the Map 0.5:0.95 #162

Open
Monday-Leo opened this issue Dec 12, 2021 · 2 comments
Open

How to get the Map 0.5:0.95 #162

Monday-Leo opened this issue Dec 12, 2021 · 2 comments

Comments

@Monday-Leo
Copy link

I succesfully run the code and get the correct result. But it can only set the MINOVERLAP = 0.5 or other constant value. Now Map 0.5:0.95 is a very useful accuracy target. So how to modify the code and calculate it ?

@jevenail
Copy link

map0.5-0.9:means(0.5、0.55、0.6、0.65、0.7、0.75、0.8、0.85、0.9、0.95)average mAP。
So I think you should calculate map in 0.5,0.55,...0.95 ,and then get mean of these data.

@EdjeElectronics
Copy link

Hi @Monday-Leo , I wrote a script that uses the code to calculate COCO mAP score@ 0.50:0.95 . The script runs the main.py code multiple times, setting a new value for MINOVERLAP each time. It collects the results for each run and averages them to get the final mAP score.

Check it out here:
https://github.com/EdjeElectronics/TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi/blob/master/util_scripts/calculate_map_cartucho.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants