-
Notifications
You must be signed in to change notification settings - Fork 450
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
[models] Change Resize kwargs to args for each zoo predictor #1765
[models] Change Resize kwargs to args for each zoo predictor #1765
Conversation
8c104b7
to
b1a5e68
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @cmoscardi 👋,
Thanks for the PR 👍
I agree from user view it's cleaner but then we should keep it consistent over all _predictor
instances and don't miss to update the docstrings :)
I created a branch as reference (feel free to copy from):
felixdittrich92@c62b851
c7c9c30
to
b3e84d6
Compare
@cmoscardi you can apply formatting with |
Ah thank you! I am in a limited connectivity environment right now and will be able to get the dev dependencies installed in a few hours. I also wanted to run tests before pinging you, thanks for the quick review of this :) |
No stress 😁 👍 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1765 +/- ##
==========================================
+ Coverage 96.55% 96.60% +0.05%
==========================================
Files 164 164
Lines 7895 7895
==========================================
+ Hits 7623 7627 +4
+ Misses 272 268 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Specifically, batch_size, symmetric_pad, preserve_aspect_ratio. This exposes a more consistent API for users across all predictors. Resolves: mindee#1764
b3e84d6
to
75ae7d1
Compare
Minor issue with pip install (on zsh at least, should be fine for other shells too)
75ae7d1
to
d96a092
Compare
OK should be good now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks 👍
detection_predictor()
and ocr_predictor()
default initialization
Closes #1764 -- more details in that issue. Hope this all helps!