File size: 5,515 Bytes
62269e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
frameworks:
- Pytorch
license: apache-2.0
tasks:
- domain-specific-object-detection

#model-type:
##如 gpt、phi、llama、chatglm、baichuan 等
#- gpt

#domain:
##如 nlp、cv、audio、multi-modal
#- nlp

#language:
##语言代码列表 https://help.aliyun.com/document_detail/215387.html?spm=a2c4g.11186623.0.0.9f8d7467kni6Aa
#- cn 

#metrics:
##如 CIDEr、Blue、ROUGE 等
#- CIDEr

tags:
##各种自定义,包括 pretrained、fine-tuned、instruction-tuned、RL-tuned 等训练方法和其他
- fine-tuned

tools:
##如 vllm、fastchat、llamacpp、AdaSeq 等
- ultralytics
---

*Floatings* are common in academic literature and formal publications. In LaTeX, floating objects refer to containers that can include text, images, tables, code, algorithms, etc. Current Document Layout Analysis (DLA) models tend to handle such elements in a relatively crude and superficial manner, making it difficult to perform fine-grained layout analysis. To address this issue, models from the YOLO11 series (with five types: n, s, m, l, x) and the RT-DETR series (types l and x) have been trained using the Ultralytics framework on the Floating Layout Detection (FLD) and Floating Structure Analysis (FSA) datasets. These models are capable of automatically detecting and analyzing floating objects in document images. Additionally, the models' weights and training parameters have been made publicly available to facilitate collaborative research.

## Download Methods

You can download the models either via Git or `huggingface-cli`.

```bash
git clone https://huggingface.co/irhawks/floating-det

# or
git clone https://huggingface.co/irhawks/floating-fsa
```

## Model Overview

Floating objects are frequently used in academic papers and books as a way to organize content. In LaTeX, floating objects can include images, tables, code blocks, or algorithms. These containers are automatically adjusted by LaTeX to fit the page layout. To aid indexing and readability, floating objects are often accompanied by metadata such as type, numbering, and captions. In complex cases, floating objects may contain multiple sub-elements, each with its own label or number.

The following are common types of floating objects in LaTeX:

- **Figures**: Used to contain images, typically defined within the `\begin{figure}` and `\end{figure}` environments.
- **Tables**: Used to contain tabular data, defined within the `\begin{table}` and `\end{table}` environments.
- **Algorithms**: Used to describe algorithms, typically utilizing packages such as `algorithm`, `algorithm2e`, or `algorithmicx`.
- **Code**: Used to display code blocks, usually defined with packages like `listings` or `minted`.

Traditional DLA tasks have significant limitations, often handling only a few elements such as tables and figures independently. This approach leads to several issues:

1. **Lack of structural coherence:** The relationship between the title and the main content of the floating object is often overlooked.
2. **Limited element types:** Elements such as code blocks and algorithm blocks are often misrecognized as multiple paragraphs, reducing accuracy.
3. **Poor adaptability:** Existing DLA models struggle to handle complex layouts, such as sub-pages and nested elements, reducing their robustness.

To address these challenges, we introduce two tasks:

- **Floating Layout Detection (FLD):** This task aims to detect the location and type of floating objects in document images, covering five types: figures, tables, algorithms, code, and others.
- **Floating Structure Analysis (FSA):** This task focuses on detecting the sub-structures within floating objects. When sub-elements such as sub-figures or sub-tables are present, the model can identify their positions and types, along with their corresponding captions. The six types of sub-elements include figures, tables, algorithms, code, captions, and others.

By training the YOLO11 and RT-DETR series models on the FLD and FSA datasets using the Ultralytics framework, we achieve automated floating object detection and analysis. To facilitate further research, the weights and training parameters are also publicly available.

The datasets are accessible at the following URLs:

- **Floating Detection Dataset:**

  - Huggingface: [https://huggingface.co/datasets/irhawks/floating-det](https://huggingface.co/datasets/irhawks/floating-det)
  - ModelScoep: [https://modelscope.cn/datasets/irhawks/floating-det](https://modelscope.cn/datasets/irhawks/floating-det)

- **Floating Structure Analysis Dataset:**

  - Huggingface: [https://huggingface.co/datasets/irhawks/floating-fsa](https://huggingface.co/datasets/irhawks/floating-fsa)
  - ModelScoep: [https://modelscope.cn/datasets/irhawks/floating-fsa](https://modelscope.cn/datasets/irhawks/floating-fsa)

## Training Results

Even with the smallest YOLO11n model, satisfactory results can be achieved. Larger models have been released for research purposes.

![Metrics during YOLO11n training](yolo11n/results.png)

![Precision-Recall (PR) curve for YOLO11n](yolo11n/PR_curve.png)

### Additional PR Curves for Other Models

- **YOLO11s:**  

![YOLO11s PR curve](yolo11s/PR_curve.png)

- **YOLO11m:**  

  ![YOLO11m PR curve](yolo11m/PR_curve.png)

- **YOLO11l:**  

  ![YOLO11l PR curve](yolo11l/PR_curve.png)

- **YOLO11x:**  

  ![YOLO11x PR curve](yolo11x/PR_curve.png)

- **RT-DETR-L:**  

  ![RT-DETR-L PR curve](rtdetr-l/PR_curve.png)

- **RT-DETR-X:**  

  ![RT-DETR-X PR curve](rtdetr-x/PR_curve.png)