tuandunghcmut commited on
Commit
8460ba1
·
verified ·
1 Parent(s): 205dc00

Add dataset card (test split only)

Browse files
Files changed (1) hide show
  1. README.md +119 -32
README.md CHANGED
@@ -1,36 +1,123 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: image_id
5
- dtype: int64
6
- - name: file_name
7
- dtype: string
8
- - name: image
9
- dtype: image
10
- - name: width
11
- dtype: int32
12
- - name: height
13
- dtype: int32
14
- - name: bboxes
15
- list:
16
- list: float32
17
- - name: areas
18
- list: float32
19
- - name: category_ids
20
- list: int32
21
- - name: category_names
22
- list: string
23
- - name: iscrowd
24
- list: int32
25
- splits:
26
  - name: test
27
- num_bytes: 4490094812
28
  num_examples: 2724
29
- download_size: 4055823520
30
- dataset_size: 4490094812
31
- configs:
32
- - config_name: default
33
- data_files:
34
- - split: test
35
- path: data/test-*
36
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: cc-by-nc-nd-4.0
3
+ task_categories:
4
+ - object-detection
5
+ - image-segmentation
6
+ language:
7
+ - en
8
+ - zh
9
+ tags:
10
+ - document-layout-analysis
11
+ - document-understanding
12
+ - coco-format
13
+ - ocr
14
+ pretty_name: M6Doc (Test Set)
15
+ size_categories:
16
+ - 1K<n<10K
17
+ splits:
 
 
 
 
 
 
 
 
18
  - name: test
 
19
  num_examples: 2724
 
 
 
 
 
 
 
20
  ---
21
+
22
+ # M6Doc — Test Set
23
+
24
+ > **⚠️ This dataset currently contains the test split only.**
25
+ > The training and validation splits require an approved application from the dataset authors (see [Access](#access) below).
26
+
27
+ ## Dataset Summary
28
+
29
+ **M6Doc** is a large-scale, multi-format document layout analysis dataset presented at **CVPR 2023** by the Deep Learning and Visual Computing Lab of South China University of Technology (SCUT).
30
+
31
+ It covers **7 document types**, **3 formats**, and **74 fine-grained annotation categories** — making it one of the most comprehensive datasets for modern document layout analysis.
32
+
33
+ | Split | Images | Annotations | Status |
34
+ |-------|--------|-------------|--------|
35
+ | **test** | **2,724** | **~71K** | ✅ Available here |
36
+ | train | ~5,450 | ~142K | 🔒 Requires application |
37
+ | validation | ~910 | ~23K | 🔒 Requires application |
38
+
39
+ ## Dataset Features
40
+
41
+ Each example contains:
42
+
43
+ | Column | Type | Description |
44
+ |--------|------|-------------|
45
+ | `image` | `Image` | Document image (viewable in browser) |
46
+ | `image_id` | `int64` | COCO image ID |
47
+ | `file_name` | `string` | Original filename |
48
+ | `width` | `int32` | Image width in pixels |
49
+ | `height` | `int32` | Image height in pixels |
50
+ | `bboxes` | `List[List[float]]` | Bounding boxes `[x, y, w, h]` per instance |
51
+ | `areas` | `List[float]` | Area of each annotated instance |
52
+ | `category_ids` | `List[int]` | Category ID per instance (1–74) |
53
+ | `category_names` | `List[str]` | Category label per instance |
54
+ | `iscrowd` | `List[int]` | Crowd flag per instance |
55
+
56
+ ## Document Categories
57
+
58
+ The dataset spans **7 document types**:
59
+
60
+ | Type | Proportion |
61
+ |------|-----------|
62
+ | Textbook | 23% |
63
+ | Test Paper | 22% |
64
+ | Magazine | 22% |
65
+ | Scientific Article | 11% |
66
+ | Newspaper | 11% |
67
+ | Note (handwritten) | 5.5% |
68
+ | Book (photographed) | 5.5% |
69
+
70
+ And **3 document formats**: PDF (64%), Scanned (31%), Photographed (5%).
71
+
72
+ ## Annotation Categories
73
+
74
+ 74 detailed layout element categories including (but not limited to):
75
+
76
+ `text`, `title`, `figure`, `figure_caption`, `table`, `table_caption`, `header`, `footer`, `page_number`, `footnote`, `formula`, `reference`, `list`, `abstract`, `author`, `affiliation`, `equation`, `sidebar`, `advertisement`, ...
77
+
78
+ ## Usage
79
+
80
+ ```python
81
+ from datasets import load_dataset
82
+
83
+ ds = load_dataset("tuandunghcmut/M6Doc")
84
+ print(ds)
85
+ # DatasetDict({ test: Dataset({features: [...], num_rows: 2724}) })
86
+
87
+ # View a sample
88
+ sample = ds["test"][0]
89
+ sample["image"] # PIL Image
90
+ sample["category_names"] # list of label strings
91
+ sample["bboxes"] # list of [x, y, w, h]
92
+ ```
93
+
94
+ ## Access
95
+
96
+ **Test set**: Freely available here.
97
+
98
+ **Train & Validation sets**: Require submitting an application form to the original authors:
99
+ 1. Fill in the [Application Form](https://github.com/HCIILAB/M6Doc/blob/main/Application_Form/Application-Form-for-Using-M6Doc.docx)
100
+ 2. Email to [lianwen.jin@gmail.com](mailto:lianwen.jin@gmail.com) or [eelwjin@scut.edu.cn](mailto:eelwjin@scut.edu.cn)
101
+ 3. Include 1–2 recent publications in OCR / document analysis
102
+
103
+ ## License
104
+
105
+ This dataset is released under [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/) — **non-commercial research use only**.
106
+
107
+ ## Citation
108
+
109
+ ```bibtex
110
+ @InProceedings{Cheng_2023_CVPR,
111
+ author = {Cheng, Hiuyi and Zhang, Peirong and Wu, Sihang and Zhang, Jiaxin and Zhu, Qiyuan and Xie, Zecheng and Li, Jing and Ding, Kai and Jin, Lianwen},
112
+ title = {M6Doc: A Large-Scale Multi-Format, Multi-Type, Multi-Layout, Multi-Language, Multi-Annotation Category Dataset for Modern Document Layout Analysis},
113
+ booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
114
+ month = {June},
115
+ year = {2023},
116
+ pages = {15138-15147}
117
+ }
118
+ ```
119
+
120
+ ## Links
121
+
122
+ - [Original GitHub Repository](https://github.com/HCIILAB/M6Doc)
123
+ - [CVPR 2023 Paper](https://openaccess.thecvf.com/content/CVPR2023/html/Cheng_M6Doc_A_Large-Scale_Multi-Format_Multi-Type_Multi-Layout_Multi-Language_Multi-Annotation_Category_Dataset_CVPR_2023_paper.html)