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

Claswise mAP #1526

Closed
bond9779 opened this issue Oct 11, 2019 · 6 comments
Closed

Claswise mAP #1526

bond9779 opened this issue Oct 11, 2019 · 6 comments
Assignees

Comments

@bond9779
Copy link

How to get the classwise mAP of a given dataset?

The below command gives the overall mAP:
python3 tools/test.py --config/<config_name> checkpoint/<checkpoint_file_name> --eval bbox segm --show/--out

But is there a way to get the classwise mAP from this?

@bond9779
Copy link
Author

@hellock

@ZwwWayne
Copy link
Collaborator

ZwwWayne commented Oct 15, 2019

Hi @bond9779 ,

Please check and use the file https://github.com/open-mmlab/mmdetection/blob/master/tools/coco_error_analysis.py.
It could help you to get the classwise mAP of COCO dataset.
You may also use it as a template for the customized dataset.

Feel free to ask if you have further questions.

@bond9779
Copy link
Author

Thanks for the prompt reply @ZwwWayne :)
I will check the link provided by you

@ZwwWayne
Copy link
Collaborator

Thanks for the prompt reply @ZwwWayne :)
I will check the link provided by you

Hi @bond9779 , I tried to run the script by myself and find that it does not show the class-wise mAP but shows other details that might help you to analyze.

So I added some code in the script and proposed a PR. You can check this link #1549
It can show the class-wise mAP for both segm and bbox now by simply adding --with_ap option in the running command.

Hope it could help.

@ZwwWayne
Copy link
Collaborator

ZwwWayne commented Oct 23, 2019

The PR #1549 is approved, so current master branch support to view classwise mAP.

I am going to close this issue, feel free to reopen it if you have any further questions.

@Cli98
Copy link

Cli98 commented Nov 18, 2019

The PR #1549 is approved, so current master branch support to view classwise mAP.

I am going to close this issue, feel free to reopen it if you have any further questions.

Why u need to PR this? coco provided this function.

FANGAreNotGnu pushed a commit to FANGAreNotGnu/mmdetection that referenced this issue Oct 23, 2023
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