Skip to content

Commit

Permalink
remove common_kwargs from processor since it propagates
Browse files Browse the repository at this point in the history
  • Loading branch information
SangbumChoi committed Jul 23, 2024
1 parent 16ddefd commit 1f9a0ee
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,14 @@ def __call__(
# Get only text
if images is not None:
encoding_image_processor = self.image_processor(
images, **output_kwargs["common_kwargs"], **output_kwargs["images_kwargs"]
images, **output_kwargs["images_kwargs"]
)
else:
encoding_image_processor = BatchFeature()

if text is not None:
text_encoding = self.tokenizer(
text=text,
**output_kwargs["common_kwargs"],
**output_kwargs["text_kwargs"],
)
else:
Expand Down

0 comments on commit 1f9a0ee

Please sign in to comment.