Skip to content

[metrics] Add COCO mAP like ObjectDetection metric#2061

Merged
felixdittrich92 merged 6 commits into
mindee:mainfrom
felixdittrich92:obj-det-metric
May 11, 2026
Merged

[metrics] Add COCO mAP like ObjectDetection metric#2061
felixdittrich92 merged 6 commits into
mindee: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.45%. Comparing base (a8694b8) to head (3f60ae8).
⚠️ 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.45%   -0.02%     
==========================================
  Files         141      142       +1     
  Lines        6060     6203     +143     
==========================================
+ Hits         5846     5983     +137     
- Misses        214      220       +6     
Flag Coverage Δ
unittests 96.45% <96.07%> (-0.02%) ⬇️

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.

Comment thread doctr/utils/metrics.py Outdated
@felixdittrich92 felixdittrich92 merged commit fb4bb21 into mindee:main May 11, 2026
42 of 45 checks passed
@felixdittrich92 felixdittrich92 deleted the obj-det-metric branch May 11, 2026 07:46
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.

2 participants