Views
No views yet
1from datasets import load_dataset
2
3raw_datasets = load_dataset(
4 "kvqa.py",
5 "default",
6 cache_dir="huggingface_datasets",
7 data_dir="data",
8 ignore_verifications=True,
9 )
10
11dataset_train = raw_datasets["train"]
12
13for item in dataset_train:
14 print(item)
15 exit()| Overall (%) | Yes/no (%) | Number (%) | Etc (%) | Unanswerable (%) | |
|---|---|---|---|---|---|
| # images | 100,445 (100) | 6,124 (6.10) | 9,332 (9.29) | 69,069 (68.76) | 15,920 (15.85) |
| # questions | 100,445 (100) | 6,124 (6.10) | 9,332 (9.29) | 69,069 (68.76) | 15,920 (15.85) |
| # answers | 1,004,450 (100) | 61,240 (6.10) | 93,320 (9.29) | 690,690 (68.76) | 159,200 (15.85) |
| Name | Type | Description |
|---|---|---|
| VQA | [dict] | list of dict holding VQA data |
| +- image | str | filename of image |
| +- source | str | data source `["kvqa" |
| +- answers | [dict] | list of dict holding 10 answers |
| +--- answer | str | answer in string |
| +--- answer_confidence | str | `["yes" |
| +- question | str | question about the image |
| +- answerable | int | answerable? `[0 |
| +- answer_type | str | answer type `["number" |
1[{
2 "image": "KVQA_190712_00143.jpg",
3 "source": "kvqa",
4 "answers": [{
5 "answer": "피아노",
6 "answer_confidence": "yes