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 M4Bench

From Leeroopedia
Revision as of 13:29, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Open_compass_VLMEvalKit_M4Bench.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Field Value
source VLMEvalKit
domain Vision, Benchmarking, Multi-Image Understanding

Overview

Benchmark dataset implementation for M4Bench evaluation in VLMEvalKit.

Description

M4Bench inherits from ImageBaseDataset and implements the M4Bench benchmark for multi-image understanding across five tasks: State Invariance, State Comparison, Spatial Perception, Instance Comparison, and Detailed Difference. The TYPE field is set to 'M4Bench'.

Usage

Registered in vlmeval/dataset/__init__.py and invoked through build_dataset() by benchmark name.

Code Reference

  • Source: vlmeval/dataset/m4bench.py, Lines: L1-193
  • Import: from vlmeval.dataset.m4bench import M4Bench

Signature:

class M4Bench(ImageBaseDataset):
    TYPE = 'M4Bench'
    DATASET_URL = {...}
    DATASET_MD5 = {...}
    ...

I/O Contract

Direction Description
Inputs TSV dataset file with image/video paths and questions
Outputs Evaluation results DataFrame with scores per category

Usage Examples

from vlmeval.dataset import build_dataset
dataset = build_dataset('State_Invariance')

Related Pages

Page Connections

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