Implementation:Open compass VLMEvalKit OlmOCRBench Katex Render
| 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 |