fix: vllm_eval 默认使用原始分辨率进行评估

This commit is contained in:
2026-03-11 11:06:01 +08:00
parent a943c1e961
commit 349f2142fb

View File

@@ -327,7 +327,7 @@ def _sample_key_frames(items: list, max_count: int) -> list:
return indices
def _load_screenshots_from_dir(result_dir: str, compress: bool = True, max_size: int = 800, quality: int = 85, max_images: int = 0) -> tuple:
def _load_screenshots_from_dir(result_dir: str, compress: bool = False, max_size: int = 800, quality: int = 85, max_images: int = 0) -> tuple:
"""
Load step screenshots from result directory and convert to base64.
When max_images > 0 and there are more screenshots than max_images,
@@ -416,7 +416,7 @@ def vllm_eval(result_state, **options) -> float:
screenshots = options.get("screenshots", [])
# Image compression options
compress_images = options.get("compress_images", True)
compress_images = options.get("compress_images", False)
max_image_size = options.get("max_image_size", 800)
image_quality = options.get("image_quality", 85)
max_eval_images = options.get("max_eval_images", 10)