-
Notifications
You must be signed in to change notification settings - Fork 332
[VLM] Create empty videos vector with batch #3129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VLM] Create empty videos vector with batch #3129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Fixes a bug where the generate method created an empty videos vector with a fixed batch size of 1, causing failures when multiple prompts were passed. The fix ensures the empty videos vector is initialized with the same batch size as the number of prompts.
- Updated the
generatemethod to create an empty videos vector sized to match the prompt batch
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
l-bat
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this! Now milebench_eval_vlm.py should work with batch > 1 for any VLM model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| def idx_to_ov_image_placeholder(idx: int) -> str: | ||
| return f"<ov_genai_image_{idx}>" |
Copilot
AI
Dec 29, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function name idx_to_ov_image_placeholder is verbose. Consider renaming it to format_image_placeholder or get_image_placeholder for better readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
Empty videos vector was created with batch 1. It fails if multiple prompts passed. Create empty_videos_vector with prompts batch size
Use ov_genai image placeholders in
milebench_eval_vlm.pysample.CVS-178649
Fixes #(issue)
Checklist: