Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Open compass VLMEvalKit Video MMLU Utils

From Leeroopedia
Revision as of 13:33, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Open_compass_VLMEvalKit_Video_MMLU_Utils.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Field Value
source VLMEvalKit
domain Vision, Evaluation, Video Understanding, Academic Knowledge

Overview

Provides GPT-based evaluation utilities for the Video-MMLU benchmark with strict OCR and reasoning-specific scoring criteria.

Description

This module defines two distinct scoring system prompts: `SYSTEM_CAL_SCORE_PROMPT_CAP` for OCR-related questions (requiring strict letter-by-letter comparison) and `SYSTEM_CAL_SCORE_PROMPT_QA` for reasoning-based questions (requiring critical concept preservation). It also includes a description-based QA generation pipeline. Dimensions cover academic subjects (math, physics, chemistry, biology) and are organized in `VIDEO_MMLU_DIMENSIONS` for per-subject and overall accuracy computation.

Usage

Called internally by the corresponding dataset class during evaluation.

Code Reference

  • Source: vlmeval/dataset/utils/video_mmlu.py, Lines: L1-161
  • Import: from vlmeval.dataset.utils.video_mmlu import VIDEO_MMLU_DIMENSIONS

Key Functions:

SYSTEM_CAL_SCORE_PROMPT_CAP = """..."""
SYSTEM_CAL_SCORE_PROMPT_QA = """..."""
VIDEO_MMLU_DIMENSIONS = {...}

I/O Contract

Direction Description
Inputs Video descriptions, academic questions, correct answers, and predicted answers
Outputs Dict string with 'pred' (yes/no) and 'score' (0-5) keys

Usage Examples

from vlmeval.dataset.utils.video_mmlu import VIDEO_MMLU_DIMENSIONS

print(VIDEO_MMLU_DIMENSIONS.keys())

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment