From 4b557b0ac30da058b38f7e97f328a9eb6fc60c82 Mon Sep 17 00:00:00 2001 From: Pablo Montalvo Date: Thu, 15 Feb 2024 15:04:01 +0000 Subject: [PATCH] address comments --- src/transformers/models/blip/processing_blip.py | 1 - .../models/bridgetower/image_processing_bridgetower.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/transformers/models/blip/processing_blip.py b/src/transformers/models/blip/processing_blip.py index 605a11a154d391..3a9f9332afae25 100644 --- a/src/transformers/models/blip/processing_blip.py +++ b/src/transformers/models/blip/processing_blip.py @@ -79,7 +79,6 @@ def __call__( text_encoding = None if text is not None: - self.current_processor = self.tokenizer text_encoding = self.tokenizer( text=text, add_special_tokens=add_special_tokens, diff --git a/src/transformers/models/bridgetower/image_processing_bridgetower.py b/src/transformers/models/bridgetower/image_processing_bridgetower.py index 26d17f5045faf8..996d856de35336 100644 --- a/src/transformers/models/bridgetower/image_processing_bridgetower.py +++ b/src/transformers/models/bridgetower/image_processing_bridgetower.py @@ -197,8 +197,8 @@ def __init__( do_normalize: bool = True, image_mean: Optional[Union[float, List[float]]] = None, image_std: Optional[Union[float, List[float]]] = None, - do_center_crop: Optional[bool] = True, - do_pad: Optional[bool] = True, + do_center_crop: bool = True, + do_pad: bool = True, pad_and_return_pixel_mask: Optional[bool] = None, return_tensors: Optional[bool] = None, data_format: Optional["ChannelDimension"] = "channels_first", # noqa: F821