We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e42058a commit f1d341aCopy full SHA for f1d341a
vlmeval/api/siliconflow.py
@@ -26,7 +26,7 @@ def resize_image(image: Image.Image, max_height: int, max_width: int) -> Image.I
26
def encode_image(path: str, max_height: int = 1024, max_width: int = 1024) -> str:
27
image = Image.open(path).convert("RGB")
28
image = resize_image(image, max_height, max_width)
29
- height, width = image.size
+ width, height = image.size
30
if min(height, width) < 50:
31
scale = 50 / min(width, height)
32
image = image.resize((int(width * scale), int(height * scale)))
0 commit comments