lhoestq HF staff commited on
Commit
fb44fd2
·
verified ·
1 Parent(s): ffc0fd2

Set "image" column type to image instead

Browse files
Files changed (1) hide show
  1. README.md +24 -4
README.md CHANGED
@@ -13,6 +13,27 @@ size_categories:
13
  - 1K<n<10K
14
  license: apache-2.0
15
  pretty_name: mmiq
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  ---
17
  # Dataset Card for "MM-IQ"
18
 
@@ -112,10 +133,9 @@ print(dataset["test"][0])
112
  print(dataset["test"][0]['data_id']) # print the problem id
113
  print(dataset["test"][0]['question']) # print the question text
114
  print(dataset["test"][0]['answer']) # print the answer
115
- print(dataset["test"][0]['image']['path']) # print the image path
116
  # Display the image
117
  print("Image context:")
118
- display(Image(dataset["test"][0]['image']["bytes"]))
119
  ```
120
 
121
  We have uploaded a demo to illustrate how to access the MM-IQ dataset on Hugging Face, available at [hugging_face_dataset_demo.ipynb](https://github.com/AceCHQ/MMIQ/blob/main/mmiq/jupyter_notebook_demos/hugging_face_dataset_demo.ipynb).
@@ -125,7 +145,7 @@ We have uploaded a demo to illustrate how to access the MM-IQ dataset on Hugging
125
 
126
  ### Data Format
127
 
128
- The dataset is provided in JSON format and contains the following attributes:
129
 
130
  ```json
131
  {
@@ -133,7 +153,7 @@ The dataset is provided in JSON format and contains the following attributes:
133
  "answer": [string] The correct answer for the problem,
134
  "data_id": [int] The problem id,
135
  "category": [string] The category of reasoning pattern,
136
- "image": [dict] Containing image raw bytes and image path (corresponding to the image in data.zip),
137
  }
138
  ```
139
 
 
13
  - 1K<n<10K
14
  license: apache-2.0
15
  pretty_name: mmiq
16
+ configs:
17
+ - config_name: default
18
+ features:
19
+ - name: category
20
+ dtype: string
21
+ - name: question
22
+ dtype: string
23
+ - name: question_en
24
+ dtype: string
25
+ - name: question_zh
26
+ dtype: string
27
+ - name: image
28
+ dtype: image
29
+ - name: MD5
30
+ dtype: string
31
+ - name: data_id
32
+ dtype: int64
33
+ - name: answer
34
+ dtype: string
35
+ - name: split
36
+ dtype: string
37
  ---
38
  # Dataset Card for "MM-IQ"
39
 
 
133
  print(dataset["test"][0]['data_id']) # print the problem id
134
  print(dataset["test"][0]['question']) # print the question text
135
  print(dataset["test"][0]['answer']) # print the answer
 
136
  # Display the image
137
  print("Image context:")
138
+ display(dataset["test"][0]['image'])
139
  ```
140
 
141
  We have uploaded a demo to illustrate how to access the MM-IQ dataset on Hugging Face, available at [hugging_face_dataset_demo.ipynb](https://github.com/AceCHQ/MMIQ/blob/main/mmiq/jupyter_notebook_demos/hugging_face_dataset_demo.ipynb).
 
145
 
146
  ### Data Format
147
 
148
+ The dataset is provided in Parquet format and contains the following attributes:
149
 
150
  ```json
151
  {
 
153
  "answer": [string] The correct answer for the problem,
154
  "data_id": [int] The problem id,
155
  "category": [string] The category of reasoning pattern,
156
+ "image": [image] Containing image (raw bytes and image path) corresponding to the image in data.zip,
157
  }
158
  ```
159