Skip to content

Update PreProcessor and Resize logic#2065

Merged
felixdittrich92 merged 3 commits into
mindee:mainfrom
felixdittrich92:preproc
May 11, 2026
Merged

Update PreProcessor and Resize logic#2065
felixdittrich92 merged 3 commits into
mindee:mainfrom
felixdittrich92:preproc

Conversation

@felixdittrich92
Copy link
Copy Markdown
Collaborator

This PR:

  • The object detection model / pipeline requires both image and padding mask as input
  • Here we update Resize to return optional also a padding mask and the coressponding PreProcessor logic
  • Updated tests

@felixdittrich92 felixdittrich92 added this to the 1.1.0 milestone May 11, 2026
@felixdittrich92 felixdittrich92 requested a review from simont2k May 11, 2026 09:25
@felixdittrich92 felixdittrich92 self-assigned this May 11, 2026
@felixdittrich92 felixdittrich92 added type: enhancement Improvement module: models Related to doctr.models ext: tests Related to tests folder labels May 11, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

❌ Patch coverage is 97.91667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 96.45%. Comparing base (c0ce28d) to head (6117daf).

Files with missing lines Patch % Lines
doctr/transforms/modules/pytorch.py 95.23% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2065   +/-   ##
=======================================
  Coverage   96.45%   96.45%           
=======================================
  Files         147      147           
  Lines        6453     6486   +33     
=======================================
+ Hits         6224     6256   +32     
- Misses        229      230    +1     
Flag Coverage Δ
unittests 96.45% <97.91%> (+<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.

@felixdittrich92 felixdittrich92 merged commit ec4e076 into mindee:main May 11, 2026
44 of 45 checks passed
@felixdittrich92 felixdittrich92 deleted the preproc branch May 11, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext: tests Related to tests folder module: models Related to doctr.models type: enhancement Improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants