Update README.md
Browse files
README.md
CHANGED
|
@@ -1,167 +1,202 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: cc-by-4.0
|
| 3 |
-
configs:
|
| 4 |
-
- config_name: COCOtext
|
| 5 |
-
data_files:
|
| 6 |
-
- split: train
|
| 7 |
-
path: COCOtext/train-*
|
| 8 |
-
- split: val
|
| 9 |
-
path: COCOtext/val-*
|
| 10 |
-
- config_name: TextOCR
|
| 11 |
-
data_files:
|
| 12 |
-
- split: train
|
| 13 |
-
path: TextOCR/train-*
|
| 14 |
-
- split: val
|
| 15 |
-
path: TextOCR/val-*
|
| 16 |
-
- config_name: pubtables-1m
|
| 17 |
-
data_files:
|
| 18 |
-
- split: train
|
| 19 |
-
path: pubtables-1m/train-*
|
| 20 |
-
- split: val
|
| 21 |
-
path: pubtables-1m/val-*
|
| 22 |
-
- split: test
|
| 23 |
-
path: pubtables-1m/test-*
|
| 24 |
-
dataset_info:
|
| 25 |
-
- config_name: COCOtext
|
| 26 |
-
features:
|
| 27 |
-
- name: sample_id
|
| 28 |
-
dtype: string
|
| 29 |
-
- name: dataset_name
|
| 30 |
-
dtype: string
|
| 31 |
-
- name: task_name
|
| 32 |
-
dtype: string
|
| 33 |
-
- name: query
|
| 34 |
-
sequence: string
|
| 35 |
-
- name: annotations
|
| 36 |
-
sequence: string
|
| 37 |
-
- name: img_id
|
| 38 |
-
dtype: string
|
| 39 |
-
- name: query_info
|
| 40 |
-
struct:
|
| 41 |
-
- name: notes
|
| 42 |
-
dtype: string
|
| 43 |
-
- name: source_attribution
|
| 44 |
-
sequence: string
|
| 45 |
-
- name: source_license
|
| 46 |
-
dtype: string
|
| 47 |
-
- name: source_url
|
| 48 |
-
dtype: string
|
| 49 |
-
- name: annotations_info
|
| 50 |
-
struct:
|
| 51 |
-
- name: notes
|
| 52 |
-
dtype: string
|
| 53 |
-
- name: source_attribution
|
| 54 |
-
sequence: string
|
| 55 |
-
- name: source_license
|
| 56 |
-
dtype: string
|
| 57 |
-
- name: source_url
|
| 58 |
-
dtype: string
|
| 59 |
-
- name: image_info
|
| 60 |
-
struct:
|
| 61 |
-
- name: notes
|
| 62 |
-
dtype: string
|
| 63 |
-
- name: image_sha256
|
| 64 |
-
dtype: string
|
| 65 |
-
splits:
|
| 66 |
-
- name: train
|
| 67 |
-
num_bytes: 66261559
|
| 68 |
-
num_examples: 46970
|
| 69 |
-
- name: val
|
| 70 |
-
num_bytes: 12498555
|
| 71 |
-
num_examples: 8892
|
| 72 |
-
download_size: 15280439
|
| 73 |
-
dataset_size: 78760114
|
| 74 |
-
- config_name: TextOCR
|
| 75 |
-
features:
|
| 76 |
-
- name: sample_id
|
| 77 |
-
dtype: string
|
| 78 |
-
- name: dataset_name
|
| 79 |
-
dtype: string
|
| 80 |
-
- name: task_name
|
| 81 |
-
dtype: string
|
| 82 |
-
- name: query
|
| 83 |
-
sequence: string
|
| 84 |
-
- name: annotations
|
| 85 |
-
sequence: string
|
| 86 |
-
- name: img_id
|
| 87 |
-
dtype: string
|
| 88 |
-
- name: query_info
|
| 89 |
-
struct:
|
| 90 |
-
- name: notes
|
| 91 |
-
dtype: string
|
| 92 |
-
- name: source_license
|
| 93 |
-
dtype: string
|
| 94 |
-
- name: source_url
|
| 95 |
-
dtype: string
|
| 96 |
-
- name: annotations_info
|
| 97 |
-
struct:
|
| 98 |
-
- name: notes
|
| 99 |
-
dtype: string
|
| 100 |
-
- name: source_license
|
| 101 |
-
dtype: string
|
| 102 |
-
- name: source_url
|
| 103 |
-
dtype: string
|
| 104 |
-
- name: image_info
|
| 105 |
-
struct:
|
| 106 |
-
- name: notes
|
| 107 |
-
dtype: string
|
| 108 |
-
- name: image_sha256
|
| 109 |
-
dtype: string
|
| 110 |
-
splits:
|
| 111 |
-
- name: train
|
| 112 |
-
num_bytes: 123664898
|
| 113 |
-
num_examples: 43484
|
| 114 |
-
- name: val
|
| 115 |
-
num_bytes: 17736515
|
| 116 |
-
num_examples: 6232
|
| 117 |
-
download_size: 35928078
|
| 118 |
-
dataset_size: 141401413
|
| 119 |
-
- config_name: pubtables-1m
|
| 120 |
-
features:
|
| 121 |
-
- name: sample_id
|
| 122 |
-
dtype: string
|
| 123 |
-
- name: dataset_name
|
| 124 |
-
dtype: string
|
| 125 |
-
- name: task_name
|
| 126 |
-
dtype: string
|
| 127 |
-
- name: query
|
| 128 |
-
sequence: string
|
| 129 |
-
- name: annotations
|
| 130 |
-
sequence: string
|
| 131 |
-
- name: img_id
|
| 132 |
-
dtype: string
|
| 133 |
-
- name: query_info
|
| 134 |
-
struct:
|
| 135 |
-
- name: notes
|
| 136 |
-
dtype: string
|
| 137 |
-
- name: source_license
|
| 138 |
-
dtype: string
|
| 139 |
-
- name: source_url
|
| 140 |
-
dtype: string
|
| 141 |
-
- name: annotations_info
|
| 142 |
-
struct:
|
| 143 |
-
- name: notes
|
| 144 |
-
dtype: string
|
| 145 |
-
- name: source_license
|
| 146 |
-
dtype: string
|
| 147 |
-
- name: source_url
|
| 148 |
-
dtype: string
|
| 149 |
-
- name: image_info
|
| 150 |
-
struct:
|
| 151 |
-
- name: notes
|
| 152 |
-
dtype: string
|
| 153 |
-
- name: image_sha256
|
| 154 |
-
dtype: string
|
| 155 |
-
splits:
|
| 156 |
-
- name: train
|
| 157 |
-
num_bytes: 4515375098
|
| 158 |
-
num_examples: 1371294
|
| 159 |
-
- name: val
|
| 160 |
-
num_bytes: 568892238
|
| 161 |
-
num_examples: 172887
|
| 162 |
-
- name: test
|
| 163 |
-
num_bytes: 561231801
|
| 164 |
-
num_examples: 170466
|
| 165 |
-
download_size: 1398777256
|
| 166 |
-
dataset_size: 5645499137
|
| 167 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
configs:
|
| 4 |
+
- config_name: COCOtext
|
| 5 |
+
data_files:
|
| 6 |
+
- split: train
|
| 7 |
+
path: COCOtext/train-*
|
| 8 |
+
- split: val
|
| 9 |
+
path: COCOtext/val-*
|
| 10 |
+
- config_name: TextOCR
|
| 11 |
+
data_files:
|
| 12 |
+
- split: train
|
| 13 |
+
path: TextOCR/train-*
|
| 14 |
+
- split: val
|
| 15 |
+
path: TextOCR/val-*
|
| 16 |
+
- config_name: pubtables-1m
|
| 17 |
+
data_files:
|
| 18 |
+
- split: train
|
| 19 |
+
path: pubtables-1m/train-*
|
| 20 |
+
- split: val
|
| 21 |
+
path: pubtables-1m/val-*
|
| 22 |
+
- split: test
|
| 23 |
+
path: pubtables-1m/test-*
|
| 24 |
+
dataset_info:
|
| 25 |
+
- config_name: COCOtext
|
| 26 |
+
features:
|
| 27 |
+
- name: sample_id
|
| 28 |
+
dtype: string
|
| 29 |
+
- name: dataset_name
|
| 30 |
+
dtype: string
|
| 31 |
+
- name: task_name
|
| 32 |
+
dtype: string
|
| 33 |
+
- name: query
|
| 34 |
+
sequence: string
|
| 35 |
+
- name: annotations
|
| 36 |
+
sequence: string
|
| 37 |
+
- name: img_id
|
| 38 |
+
dtype: string
|
| 39 |
+
- name: query_info
|
| 40 |
+
struct:
|
| 41 |
+
- name: notes
|
| 42 |
+
dtype: string
|
| 43 |
+
- name: source_attribution
|
| 44 |
+
sequence: string
|
| 45 |
+
- name: source_license
|
| 46 |
+
dtype: string
|
| 47 |
+
- name: source_url
|
| 48 |
+
dtype: string
|
| 49 |
+
- name: annotations_info
|
| 50 |
+
struct:
|
| 51 |
+
- name: notes
|
| 52 |
+
dtype: string
|
| 53 |
+
- name: source_attribution
|
| 54 |
+
sequence: string
|
| 55 |
+
- name: source_license
|
| 56 |
+
dtype: string
|
| 57 |
+
- name: source_url
|
| 58 |
+
dtype: string
|
| 59 |
+
- name: image_info
|
| 60 |
+
struct:
|
| 61 |
+
- name: notes
|
| 62 |
+
dtype: string
|
| 63 |
+
- name: image_sha256
|
| 64 |
+
dtype: string
|
| 65 |
+
splits:
|
| 66 |
+
- name: train
|
| 67 |
+
num_bytes: 66261559
|
| 68 |
+
num_examples: 46970
|
| 69 |
+
- name: val
|
| 70 |
+
num_bytes: 12498555
|
| 71 |
+
num_examples: 8892
|
| 72 |
+
download_size: 15280439
|
| 73 |
+
dataset_size: 78760114
|
| 74 |
+
- config_name: TextOCR
|
| 75 |
+
features:
|
| 76 |
+
- name: sample_id
|
| 77 |
+
dtype: string
|
| 78 |
+
- name: dataset_name
|
| 79 |
+
dtype: string
|
| 80 |
+
- name: task_name
|
| 81 |
+
dtype: string
|
| 82 |
+
- name: query
|
| 83 |
+
sequence: string
|
| 84 |
+
- name: annotations
|
| 85 |
+
sequence: string
|
| 86 |
+
- name: img_id
|
| 87 |
+
dtype: string
|
| 88 |
+
- name: query_info
|
| 89 |
+
struct:
|
| 90 |
+
- name: notes
|
| 91 |
+
dtype: string
|
| 92 |
+
- name: source_license
|
| 93 |
+
dtype: string
|
| 94 |
+
- name: source_url
|
| 95 |
+
dtype: string
|
| 96 |
+
- name: annotations_info
|
| 97 |
+
struct:
|
| 98 |
+
- name: notes
|
| 99 |
+
dtype: string
|
| 100 |
+
- name: source_license
|
| 101 |
+
dtype: string
|
| 102 |
+
- name: source_url
|
| 103 |
+
dtype: string
|
| 104 |
+
- name: image_info
|
| 105 |
+
struct:
|
| 106 |
+
- name: notes
|
| 107 |
+
dtype: string
|
| 108 |
+
- name: image_sha256
|
| 109 |
+
dtype: string
|
| 110 |
+
splits:
|
| 111 |
+
- name: train
|
| 112 |
+
num_bytes: 123664898
|
| 113 |
+
num_examples: 43484
|
| 114 |
+
- name: val
|
| 115 |
+
num_bytes: 17736515
|
| 116 |
+
num_examples: 6232
|
| 117 |
+
download_size: 35928078
|
| 118 |
+
dataset_size: 141401413
|
| 119 |
+
- config_name: pubtables-1m
|
| 120 |
+
features:
|
| 121 |
+
- name: sample_id
|
| 122 |
+
dtype: string
|
| 123 |
+
- name: dataset_name
|
| 124 |
+
dtype: string
|
| 125 |
+
- name: task_name
|
| 126 |
+
dtype: string
|
| 127 |
+
- name: query
|
| 128 |
+
sequence: string
|
| 129 |
+
- name: annotations
|
| 130 |
+
sequence: string
|
| 131 |
+
- name: img_id
|
| 132 |
+
dtype: string
|
| 133 |
+
- name: query_info
|
| 134 |
+
struct:
|
| 135 |
+
- name: notes
|
| 136 |
+
dtype: string
|
| 137 |
+
- name: source_license
|
| 138 |
+
dtype: string
|
| 139 |
+
- name: source_url
|
| 140 |
+
dtype: string
|
| 141 |
+
- name: annotations_info
|
| 142 |
+
struct:
|
| 143 |
+
- name: notes
|
| 144 |
+
dtype: string
|
| 145 |
+
- name: source_license
|
| 146 |
+
dtype: string
|
| 147 |
+
- name: source_url
|
| 148 |
+
dtype: string
|
| 149 |
+
- name: image_info
|
| 150 |
+
struct:
|
| 151 |
+
- name: notes
|
| 152 |
+
dtype: string
|
| 153 |
+
- name: image_sha256
|
| 154 |
+
dtype: string
|
| 155 |
+
splits:
|
| 156 |
+
- name: train
|
| 157 |
+
num_bytes: 4515375098
|
| 158 |
+
num_examples: 1371294
|
| 159 |
+
- name: val
|
| 160 |
+
num_bytes: 568892238
|
| 161 |
+
num_examples: 172887
|
| 162 |
+
- name: test
|
| 163 |
+
num_bytes: 561231801
|
| 164 |
+
num_examples: 170466
|
| 165 |
+
download_size: 1398777256
|
| 166 |
+
dataset_size: 5645499137
|
| 167 |
+
---
|
| 168 |
+
# BigDocs-7.5M
|
| 169 |
+
#### Training data for the paper: [BigDocs: An Open and Permissively-Licensed Dataset for Training Multimodal Models on Document and Code Tasks](https://huggingface.co/datasets/ServiceNow/BigDocs-Bench-Collections/)
|
| 170 |
+
|
| 171 |
+
🌐 [Homepage](https://bigdocs.github.io) | 📖 [arXiv](https://arxiv.org/pdf/2412.04626)
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
## 🔔 News
|
| 175 |
+
|
| 176 |
+
- **[2025-04-23]: Initial release of the BigDocs-7.5M data.**
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
## Guide on Data Loading
|
| 180 |
+
Some parts of BigDocs-7.5M are distributed without their "image" column, and instead have an "img_id" column. The file `get_bigdocs_75m.py`, part of this repository, provides tooling to substitutes such images back in.
|
| 181 |
+
|
| 182 |
+
```python
|
| 183 |
+
from get_bigdocs_75m import get_bigdocs_75m
|
| 184 |
+
|
| 185 |
+
cocotext = get_bigdocs_75m("COCOtext", user_local_path=".../train2014")
|
| 186 |
+
pubtables1m = get_bigdocs_75m("pubtables-1m", user_local_path=".../PubTables-1M-Detection/images")
|
| 187 |
+
textocr = get_bigdocs_75m("TextOCR", user_local_path=".../train")
|
| 188 |
+
```
|
| 189 |
+
|
| 190 |
+
When specified, `user_local_path` must point to one of the third-party datasets listed below.
|
| 191 |
+
|
| 192 |
+
- COCOtext: http://images.cocodataset.org/zips/train2014.zip
|
| 193 |
+
- pubtables-1m: https://www.microsoft.com/en-us/research/publication/pubtables-1m
|
| 194 |
+
- TextOCR: https://dl.fbaipublicfiles.com/textvqa/images/train_val_images.zip
|
| 195 |
+
|
| 196 |
+
See the docstring in `get_bigdocs_75m.py` for more details.
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
## Licensing
|
| 200 |
+
The part of this repository generated by us is Copyright ServiceNow 2024 and licensed under the [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/) license.
|
| 201 |
+
|
| 202 |
+
Multiple datasets, documents, and tools were involved in the generation of BigDocs-Bench. We document these dependencies on a per-sample basis through the `query_info`, `annotation_info` and `image_info` fields, respectively documenting the `query`, `annotations` and `image` fields of our datasets.
|