Skip to content

Commit

Permalink
Add Qwen2VLImageProcessorFast into Qwen2VLProcessor (#35987)
Browse files Browse the repository at this point in the history
* Add `Qwen2VLImageProcessorFast` into `Qwen2VLProcessor`

* Use `AutoImageProcessor` instead

Co-authored-by: Yoni Gozlan <[email protected]>

---------

Co-authored-by: Yoni Gozlan <[email protected]>
  • Loading branch information
2 people authored and MekkCyber committed Feb 7, 2025
1 parent 5f597b7 commit b44d36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/qwen2_vl/processing_qwen2_vl.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Qwen2VLProcessor(ProcessorMixin):

attributes = ["image_processor", "tokenizer"]
valid_kwargs = ["chat_template"]
image_processor_class = "Qwen2VLImageProcessor"
image_processor_class = "AutoImageProcessor"
tokenizer_class = ("Qwen2Tokenizer", "Qwen2TokenizerFast")

def __init__(self, image_processor=None, tokenizer=None, chat_template=None, **kwargs):
Expand Down

0 comments on commit b44d36e

Please sign in to comment.