Skip to content

Commit f1d341a

Browse files
author
Yuan Ye
committed
fix confusing image width&height
1 parent e42058a commit f1d341a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlmeval/api/siliconflow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def resize_image(image: Image.Image, max_height: int, max_width: int) -> Image.I
2626
def encode_image(path: str, max_height: int = 1024, max_width: int = 1024) -> str:
2727
image = Image.open(path).convert("RGB")
2828
image = resize_image(image, max_height, max_width)
29-
height, width = image.size
29+
width, height = image.size
3030
if min(height, width) < 50:
3131
scale = 50 / min(width, height)
3232
image = image.resize((int(width * scale), int(height * scale)))

0 commit comments

Comments
 (0)