[data] add min resolution option (#6975)

Former-commit-id: 76bd9a98a2fb00f1a1d881e6e1364c02fd36d327
This commit is contained in:
hoshi-hiyouga
2025-02-18 01:40:46 +08:00
committed by GitHub
parent f2fd9d1b25
commit c09b648934
9 changed files with 59 additions and 24 deletions

View File

@@ -58,14 +58,22 @@ class ProcessorArguments:
Arguments pertaining to the image processor.
"""
image_resolution: int = field(
image_max_resolution: int = field(
default=768 * 768,
metadata={"help": "The maximum number of pixels of image inputs."},
)
video_resolution: int = field(
image_min_resolution: int = field(
default=32 * 32,
metadata={"help": "The minimum number of pixels of image inputs."},
)
video_max_resolution: int = field(
default=256 * 256,
metadata={"help": "The maximum number of pixels of video inputs."},
)
video_min_resolution: int = field(
default=16 * 16,
metadata={"help": "The minimum number of pixels of video inputs."},
)
video_fps: float = field(
default=2.0,
metadata={"help": "The frames to sample per second for video inputs."},