-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Getting average precision class values from detectron2 model evaluation #5101
Comments
I wanted to contribute on this |
Please let me know if there is a script to calculate the individual AP50 values for AP50 |
The values returned by
|
I was able to get data for AP50. I'm really thankful to you. |
Hello, thanks for your clear code, but for me, it seems didn't work, I think It may be like this because I installed the compiled detectron2 directly, If I install the compiled detectron2 directly, do I have to recompile after making changes?
|
How does it seems didn't work?
No. But add a |
|
Thank you very much. This worked great. |
🚀 Feature
A clear and concise description of the feature proposal.
When using the
inference_on_dataset
function fromdetectron2.evaluation
, it only provides the overall mAP50 value, and does not provide class AP50 values. However, it does provide individual AP values. It would also be helpful if a similar feature could be added for precision and recall. If there is currently a method to do this, please let me know.I spent a long time trying to create my own AP, Precision, and Recall evaluators which turned out to be very slow, difficult to use, and may not be completely precise. I hope others will not have to go through the trouble of making it from scratch.
If it were to be implemented, the precision, recall, and AP values with their corresponding classes, would be included as keys in the ordered dictionary generated from
inference_on_dataset
.I am currently testing something with fastrcnn, but I do not know if the type of model I am using makes a difference for the
inference_on_dataset
function. To be clear, I am using the COCO format.The text was updated successfully, but these errors were encountered: