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 OlmOCRBench Katex Render

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

Overview

KaTeX rendering utility module for mathematical equation comparison in the olmOCRBench evaluation pipeline in VLMEvalKit.

Description

This utility file does not define a dataset class. It provides LaTeX equation rendering and comparison capabilities used by the olmOCRBench evaluation system. Key classes include EquationCache for caching rendered equations, BoundingBox and SpanInfo for spatial layout representation, RenderedEquation for rendered equation comparison, and TestRenderedEquationComparison for unit testing the rendering pipeline.

Usage

Imported by the olmOCRBench evaluation pipeline to support mathematical formula comparison between predicted and ground-truth outputs.

Code Reference

  • Source: vlmeval/dataset/olmOCRBench/katex/render.py, Lines: L1-749
  • Import: from vlmeval.dataset.olmOCRBench.katex.render import *

Key Classes:

class EquationCache:
    ...

class BoundingBox:
    ...

class SpanInfo:
    ...

class RenderedEquation:
    ...

I/O Contract

Direction Description
Inputs LaTeX equation strings for rendering and comparison
Outputs Rendered equation objects with bounding box and similarity metrics

Related Pages

Page Connections

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