Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
molbap committed Feb 15, 2024
1 parent bfa81e5 commit 4b557b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/transformers/models/blip/processing_blip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b557b0

Please sign in to comment.