COCODet 是基于 COCO 数据集标准的目标检测评估指标,在您的项目中通过 mmeval.COCODetection 实现。主要包含以下指标:
根据您的代码和配置文件,COCODet 主要用于以下检测任务:
在 layout_detection.yaml 中配置,用于评估文档版面元素检测:
detection_eval: # 由 DetectionEval 类处理
metrics:
- COCODet # 使用 COCODet 指标
检测的版面元素包括:
title - 标题text - 正文文本figure - 图片table - 表格abandon - 页眉页脚等在 formula_detection.yaml 中配置,评估公式检测效果:
isolate_formula - 行间公式检测inline_formula - 行内公式检测在 detection_eval.py 中,DetectionEval 类通过以下方式使用 COCODet:
detect_matrix = dataset.coco_det_metric(
predictions=dataset.samples['preds'],
groundtruths=dataset.samples['gts']
)
数据来源于 DetectionDataset 类,该类负责:
COCODet 指标特别适合文档检测任务因为:
这使得 OmniDocBench 能够全面评估各种文档理解模型在版面分析和公式检测任务上的性能表现。