Skip to content

Commit

Permalink
Update src/transformers/models/idefics3/image_processing_idefics3.py
Browse files Browse the repository at this point in the history
Co-authored-by: amyeroberts <[email protected]>
  • Loading branch information
andimarafioti and amyeroberts committed Sep 18, 2024
1 parent 5f0c2dc commit d707652
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -885,10 +885,7 @@ def preprocess(
]

if do_rescale:
rescaled_images_array = []
for image in images_list:
rescaled_images_array.append([rescale(img, rescale_factor, data_format=data_format) for img in image])
images_list = rescaled_images_array
images_list = [[self.rescale(img, rescale_factor, data_format=data_format) for image in images] for images in images_list]

if do_normalize:
images_list = [
Expand Down

0 comments on commit d707652

Please sign in to comment.