We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
max_frames_num
OpenAICompatible
1 parent 8ada805 commit c15ebb3Copy full SHA for c15ebb3
lmms_eval/models/openai_compatible.py
@@ -38,6 +38,7 @@ def __init__(
38
continual_mode: bool = False,
39
response_persistent_folder: str = None,
40
azure_openai: bool = False,
41
+ max_frames_num: int = 10,
42
**kwargs,
43
) -> None:
44
super().__init__()
@@ -46,6 +47,7 @@ def __init__(
46
47
self.max_retries = max_retries
48
self.max_size_in_mb = max_size_in_mb # some models have a limit on the size of the image
49
self.continual_mode = continual_mode
50
+ self.max_frames_num = max_frames_num
51
if self.continual_mode:
52
if response_persistent_folder is None:
53
raise ValueError("Continual mode requires a persistent path for the response. Please provide a valid path.")
0 commit comments