From 5f0c2dc980dc462633402534820927b315b9baeb Mon Sep 17 00:00:00 2001 From: Andres Marafioti Date: Tue, 17 Sep 2024 10:17:47 +0000 Subject: [PATCH] ruff :( --- .../models/idefics3/image_processing_idefics3.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/transformers/models/idefics3/image_processing_idefics3.py b/src/transformers/models/idefics3/image_processing_idefics3.py index 9953f484ec125d..80571c1b13444f 100644 --- a/src/transformers/models/idefics3/image_processing_idefics3.py +++ b/src/transformers/models/idefics3/image_processing_idefics3.py @@ -865,7 +865,12 @@ def preprocess( # We square the images to max_image_size images_list = [ [ - self.resize(image=image, size={'height': max_image_size["longest_edge"], "width": max_image_size["longest_edge"]}, resample=resample, input_data_format=data_format) + self.resize( + image=image, + size={"height": max_image_size["longest_edge"], "width": max_image_size["longest_edge"]}, + resample=resample, + input_data_format=data_format, + ) for image in images ] for images in images_list