Datasets:

Modalities:
Image
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:
Molbap HF staff commited on
Commit
8fc9981
1 Parent(s): 4558a52

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +133 -0
README.md ADDED
@@ -0,0 +1,133 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ dataset_info:
3
+ features:
4
+ - name: image
5
+ dtype: image
6
+ - name: question_id
7
+ dtype: int64
8
+ - name: question
9
+ dtype: string
10
+ - name: answers
11
+ sequence: string
12
+ - name: data_split
13
+ dtype: string
14
+ - name: ocr_results
15
+ struct:
16
+ - name: page
17
+ dtype: int64
18
+ - name: clockwise_orientation
19
+ dtype: float64
20
+ - name: width
21
+ dtype: int64
22
+ - name: height
23
+ dtype: int64
24
+ - name: unit
25
+ dtype: string
26
+ - name: lines
27
+ list:
28
+ - name: bounding_box
29
+ sequence: int64
30
+ - name: text
31
+ dtype: string
32
+ - name: words
33
+ list:
34
+ - name: bounding_box
35
+ sequence: int64
36
+ - name: text
37
+ dtype: string
38
+ - name: confidence
39
+ dtype: string
40
+ - name: other_metadata
41
+ struct:
42
+ - name: ucsf_document_id
43
+ dtype: string
44
+ - name: ucsf_document_page_no
45
+ dtype: string
46
+ - name: doc_id
47
+ dtype: int64
48
+ - name: image
49
+ dtype: string
50
+ splits:
51
+ - name: train
52
+ num_examples: 39463
53
+ - name: validation
54
+ num_examples: 5349
55
+ - name: test
56
+ num_examples: 5188
57
+ configs:
58
+ - config_name: default
59
+ data_files:
60
+ - split: train
61
+ path: data/train-*
62
+ - split: validation
63
+ path: data/validation-*
64
+ - split: test
65
+ path: data/test-*
66
+ license: mit
67
+ task_categories:
68
+ - question-answering
69
+ language:
70
+ - en
71
+ pretty_name: d
72
+ size_categories:
73
+ - 10K<n<100K
74
+ ---
75
+
76
+ # Dataset Card for DocVQA Dataset
77
+
78
+ ## Dataset Description
79
+
80
+ - **Point of Contact from curators:** [Minesh Mathew](mailto:[email protected]), [Dimosthenis Karatzas]([email protected]), [C. V. Jawahar]([email protected])
81
+ - **Point of Contact Hugging Face:** [Pablo Montalvo](mailto:[email protected])
82
+
83
+ ### Dataset Summary
84
+
85
+ DocVQA dataset is a document dataset introduced in Mathew et al. (2021) consisting of 50,000 questions defined on 12,000+ document images.
86
+
87
+ ### Usage
88
+
89
+ This dataset can be used with current releases of Hugging Face `datasets` library.
90
+ Here is an example using a custom collator to bundle batches in a trainable way on the `train` split
91
+
92
+ ```python
93
+
94
+ from datasets import load_dataset
95
+
96
+
97
+
98
+ docvqa_dataset = load_dataset("pixparse/docvqa-single-page", split="train"
99
+ )
100
+
101
+ collator_class = Collator()
102
+ loader = DataLoader(docvqa_dataset, batch_size=8, collate_fn=collator_class.collate_fn)
103
+ ```
104
+
105
+ The loader can then be iterated on normally and yields image + question and answer samples.
106
+
107
+ ### Data Splits
108
+
109
+
110
+ #### Train
111
+ * 10194 images, 39463 questions and answers.
112
+
113
+ ### Validation
114
+
115
+ * 1286 images, 5349 questions and answers.
116
+
117
+ ### Test
118
+
119
+ * 1,287 images, 5,188 questions.
120
+
121
+ ## Additional Information
122
+
123
+ ### Dataset Curators
124
+
125
+ Pablo Montalvo, Ross Wightman
126
+
127
+ ### Licensing Information
128
+
129
+ MIT
130
+
131
+ ### Citation Information
132
+
133
+ Mathew, Minesh, Dimosthenis Karatzas, and C. V. Jawahar. "Docvqa: A dataset for vqa on document images." Proceedings of the IEEE/CVF winter conference on applications of computer vision. 20