Skip to content

[metrics] Add COCO mAP like ObjectDetection metric#2061

Open
felixdittrich92 wants to merge 5 commits intomindee:mainfrom
felixdittrich92:obj-det-metric
Open

[metrics] Add COCO mAP like ObjectDetection metric#2061
felixdittrich92 wants to merge 5 commits intomindee:mainfrom
felixdittrich92:obj-det-metric

Conversation

@felixdittrich92
Copy link
Copy Markdown
Collaborator

@felixdittrich92 felixdittrich92 commented May 6, 2026

This PR:

  • Add COCO-like mAP metric for object detection
  • Add corresponding tests / docs entry
  • Speed up polygon_iou 5 times

@felixdittrich92 felixdittrich92 added this to the 1.1.0 milestone May 6, 2026
@felixdittrich92 felixdittrich92 self-assigned this May 6, 2026
@felixdittrich92 felixdittrich92 added topic: documentation Improvements or additions to documentation type: enhancement Improvement module: utils Related to doctr.utils ext: tests Related to tests folder ext: docs Related to docs folder topic: layout detection Related to document layout detection labels May 6, 2026
@felixdittrich92
Copy link
Copy Markdown
Collaborator Author

@felixdittrich92
Copy link
Copy Markdown
Collaborator Author

@simont2k Ready to review

@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2026

Codecov Report

❌ Patch coverage is 96.07843% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.47%. Comparing base (a8694b8) to head (2f41cc1).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
doctr/utils/metrics.py 96.07% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2061   +/-   ##
=======================================
  Coverage   96.46%   96.47%           
=======================================
  Files         141      141           
  Lines        6060     6152   +92     
=======================================
+ Hits         5846     5935   +89     
- Misses        214      217    +3     
Flag Coverage Δ
unittests 96.47% <96.07%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext: docs Related to docs folder ext: tests Related to tests folder module: utils Related to doctr.utils topic: documentation Improvements or additions to documentation topic: layout detection Related to document layout detection type: enhancement Improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant