Unverified Commit 36c9ce25 authored by gh-wf's avatar gh-wf Committed by GitHub
Browse files

Ensure minimum frames for GLM 4.6V compatibility (#30285)


Signed-off-by: default avatarWayne Ferguson <wayneferguson@gmail.com>
parent 1a516557
......@@ -1257,6 +1257,7 @@ class Glm4vDummyInputsBuilder(BaseDummyInputsBuilder[Glm4vProcessingInfo]):
)
height = min(height, overrides.height)
num_frames = max(num_frames, 2) # GLM 4.6V requires 2 frames
video = np.full((num_frames, width, height, 3), 255, dtype=np.uint8)
video_items = []
for i in range(num_videos):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment