-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Uniformize kwargs for processors - GroundingDINO #31964
Conversation
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.
Thanks for helping us to make the processors more uniform!
Can you also add a test for this, it is available in:
from ...test_processing_common import ProcessorTesterMixin
src/transformers/models/grounding_dino/processing_grounding_dino.py
Outdated
Show resolved
Hide resolved
I think the circleCI fails since the upper PR is not merged in to main. Otherwise requesting for second review! |
src/transformers/models/grounding_dino/processing_grounding_dino.py
Outdated
Show resolved
Hide resolved
…to fix_grounding_dino
…to fix_grounding_dino
@zucchini-nlp Hi now I understand the full logic and had a one question on this PR. with based on following image processor However, not all the processor has the otherwise I can override these test for groundingdino only WDYT? cc. @molbap (BTW, I reverted all the irrelevant commit and major CI fail is related to this comment) |
IIRC the test will fail if we pass in both, crop_size and size, because one of the args will not be used by image processor. If that's the case, we can override since it is about making tests happy |
Since only these two arguments are passed, we could also |
Well this was not the exactly the case. As I mentioned GroundingDINO processor -> image_processor does not have function of I manually changed this to inherit @zucchini-nlp Request for the review! |
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.
Great work, thanks for working on it! Left one tiny comment
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.
Thanks a lot @SangbumChoi 🙏
I added a comment as well on a test.
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.
Requesting review from core maintainer :)
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
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.
Looks great - thanks for handling this!
src/transformers/models/grounding_dino/processing_grounding_dino.py
Outdated
Show resolved
Hide resolved
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.
❤️
What does this PR do?
Fixes one model from #31911
We don;t want our tracker issue to be closed after the PR is merged, so I edited the magic keyword a bit
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@zucchini-nlp @NielsRogge @EduardoPach