Skip to content

Commit

Permalink
Test PR (#134)
Browse files Browse the repository at this point in the history
* Update ANTIALIAS -> Resampling.LANCZOS
  • Loading branch information
Landanjs authored Apr 2, 2024
1 parent 8602652 commit e07dab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/batched-llava-caption.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def resize_and_pad(self, image: Image.Image) -> Image.Image:
resize_width = round(resize_height * aspect_ratio)
else:
raise ValueError('Invalid image dimensions')
resized_image = image.resize((resize_width, resize_height), Image.ANTIALIAS)
resized_image = image.resize((resize_width, resize_height), Image.Resampling.LANCZOS)

# Calculate padding
pad_width_left = (self.width - resize_width) // 2
Expand Down

0 comments on commit e07dab4

Please sign in to comment.