CoolFace
Modelpublic

ashen007/document-structure-detection

sourceHugging Faceapache-2.0updated 1y agoView on Hugging Face
3likes
Model Card

YOLO Document Layout Model

This model is a fine-tuned YOLO detector for document layout analysis, capable of identifying various document elements such as text columns, figures, tables, and other typographical features.

Interactive Demo

Try the model directly in your browser:

![Hugging Face Spaces](https://ashen007-yolo-document-layout-demo.hf.space/?__theme=system)

Model Description

The model is trained to detect and classify 20 different document components, including text structures (TextColumn, List), semantic elements (Title, Header), typographical features (Bold, Italic), and visual components (Figure, Table).

Model Detections

image/png

image/png

Training

The model was fine-tuned using a proprietary dataset of document images.

Evaluation Results

The model's performance was evaluated on a test set with the following metrics:

ClassImagesInstancesPrecisionRecallmAP50mAP50-95
all15012550.7010.7230.7350.509
Author7650.6930.1740.3070.134
Bigletter11111.0000.9000.9760.563
Bleeding9100.6180.7000.6670.547
Bold23770.6790.7530.7980.395
Caption50710.8920.8160.8810.642
Date17570.9270.6660.7280.386
Figure901490.7720.7250.8230.677
Footnote14150.5000.6670.6120.478
Header16160.5600.7170.6640.476
Italic17860.4480.7910.5570.327
List34550.6150.7090.7420.591
Map440.6060.7500.6560.599
SubSubTitle37970.6270.5200.5990.300
SubTitle54960.6050.5620.6050.327
Table30430.8650.9530.9660.855
TextColumn1153230.8310.9130.9330.811
Title47660.7120.7110.6490.441
Underline240.6811.0000.9950.665
equations4100.6880.7000.8090.450

Key Performance Highlights:

  • Best performing classes: Table (mAP50: 0.966), TextColumn (mAP50: 0.933), and Caption (mAP50: 0.881)
  • High precision classes: Bigletter (1.000), Date (0.927), and Caption (0.892)
  • High recall classes: Underline (1.000), Table (0.953), and TextColumn (0.913)
  • Overall performance: mAP50 of 0.735 and mAP50-95 of 0.509 across all classes

Limitations

  • Lower performance on Author detection (mAP50: 0.307)
  • Moderate performance on typographical features like Italic (mAP50: 0.557)
  • Limited sample size for some classes (Map, Underline, equations)