-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
add Qwen2-VL image processor fast #35733
add Qwen2-VL image processor fast #35733
Conversation
Hey @qubvel ! class TimmWrapperImageProcessor(metaclass=DummyObject):
_backends = ["torchvision"]
def __init__(self, *args, **kwargs):
requires_backends(self, ["torchvision"]) to
Weird that it is not picked up on the main branch though! |
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.
Nice! Good timing with the qwen 2.5 release
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 adding more fast image processors!
44b01d1
to
90d0945
Compare
What does this PR do?
Adds a fast image processor for Qwen2-VL. Follows issue #33810.
This image processor is a result of this work on comparing different image processing method.
More on how to use fast image processors here.
This PR doesn't include optimization for batch processing as this will be added to the base image processor fast in this PR #35069.
Once #35069 is merged, this fast processor will need to be refactored and the batch processing optimizations will be added.
Fixes #34272
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.