jonathanjordan21 commited on
Commit
b264077
·
verified ·
1 Parent(s): c542bda

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +76 -1
README.md CHANGED
@@ -30,5 +30,80 @@ configs:
30
  path: data/test-*
31
  ---
32
 
33
- # Info
34
  This dataset is processed from [achang/plot_qa](https://huggingface.co/datasets/achang/plot_qa)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  path: data/test-*
31
  ---
32
 
33
+ # Dataset Info
34
  This dataset is processed from [achang/plot_qa](https://huggingface.co/datasets/achang/plot_qa)
35
+
36
+ # Dataset Card for PlotQA
37
+
38
+ ## Dataset Description
39
+
40
+ - **PlotQA from here:** [PlotQA](https://github.com/NiteshMethani/PlotQA)
41
+
42
+ ### Dataset Summary
43
+
44
+ PlotQA is a VQA dataset with 28.9 million question-answer pairs grounded over 224,377 plots on data from real-world sources and questions based on crowd-sourced question templates.
45
+
46
+ ## Dataset Structure
47
+
48
+ ### Data Fields
49
+
50
+ List and describe the fields present in the dataset. Mention their data type, and whether they are used as input or output in any of the tasks the dataset currently supports. If the data has span indices, describe their attributes, such as whether they are at the character level or word level, whether they are contiguous or not, etc. If the datasets contains example IDs, state whether they have an inherent meaning, such as a mapping to other datasets or pointing to relationships between data points.
51
+
52
+ - `image`: PIL image of a plot
53
+ - `text`: string of json data 'models'. See notes below.
54
+
55
+ From [here](https://github.com/NiteshMethani/PlotQA/blob/master/PlotQA_Dataset.md):
56
+ 'models': It is a list of dictionaries. Depending on the type of the plot (single or 2,3,4-multi), the length of the dictionary can vary from 1 to 4. Each dictionary contains the following keys-
57
+ name: Label corresponding to the datapoint.
58
+ color: Color corresponding to the `name` datapoint.
59
+ bboxes: Bounding boxes corresponding to the `name` datapoints in the plot.
60
+ label: label corresponding to the datapoint which will appear as the legend (same as the `name` field).
61
+ x: x-value of the datapoints.
62
+ y: y-value of the datapoints.
63
+
64
+
65
+ [json2token](https://github.com/clovaai/donut/blob/b317b4bbf1eecec7c62e7666f2097e1e90a6b441/donut/model.py#L495) function was used to convert json to string.
66
+
67
+ The new tokens are already loaded in plotQA processor:
68
+ ```
69
+ from transformers import DonutProcessor
70
+ processor = DonutProcessor.from_pretrained("[achang/donut-plotqa-trained](https://huggingface.co/achang/donut-plotqa-trained)")
71
+ ```
72
+
73
+ ### Data Splits
74
+
75
+ ```
76
+ validation: Dataset({
77
+ features: ['image', 'text'],
78
+ num_rows: 33650
79
+ })
80
+ train: Dataset({
81
+ features: ['image', 'text'],
82
+ num_rows: 157070
83
+ })
84
+ test: Dataset({
85
+ features: ['image', 'text'],
86
+ num_rows: 33657
87
+ })
88
+ ```
89
+
90
+
91
+
92
+ ## Misc
93
+
94
+ Dataset Creation, Annotations, Considerations for Using the Data, Social Impact of Dataset, Additional Information, Licensing Information look at [plotQA](https://github.com/NiteshMethani/PlotQA)
95
+
96
+
97
+ ### Citation Information
98
+
99
+ Please cite the following if you use the PlotQA dataset in your work:
100
+ ```
101
+ @InProceedings{Methani_2020_WACV,
102
+ author = {Methani, Nitesh and Ganguly, Pritha and Khapra, Mitesh M. and Kumar, Pratyush},
103
+ title = {PlotQA: Reasoning over Scientific Plots},
104
+ booktitle = {The IEEE Winter Conference on Applications of Computer Vision (WACV)},
105
+ month = {March},
106
+ year = {2020}
107
+ }
108
+ ```
109
+