feat: add process_results_use_image and video metadata dict support in task API#1275
Merged
feat: add process_results_use_image and video metadata dict support in task API#1275
Conversation
Two task API enhancements: 1. New `process_results_use_image` config flag: when true, preserves image/video data in dataset_no_image for tasks whose process_results needs visual context (e.g., bounding box verification). 2. Video metadata dict handling in ConfigurableMessagesTask: dict visuals with video_start/video_end metadata are passed through to models, enabling per-sample temporal range support.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two task API enhancements for richer evaluation capabilities:
1.
process_results_use_imageconfig flagWhen set to
truein a task YAML, image/video columns are preserved in the dataset passed toprocess_results. This enables metrics that need visual context (e.g., bounding box overlay verification, visual grounding checks).Default behavior is unchanged — images are still stripped unless explicitly opted in.
2. Video metadata dict handling in ConfigurableMessagesTask
Dict-type visuals carrying
video_start/video_endmetadata are now properly passed through to models, enabling per-sample temporal range support for video tasks.Test plan
process_results_use_image: truereceives images in process_results