license:apache-2.0 region:us
---
license: apache-2.0
---

# Overview

The original code is from https://huggingface.co/datasets/Graphcore/vqa/tree/main  
Adaptered by: Aisuko


# How to use it

```python
from datasets import load_dataset

dataset = load_dataset("aisuko/vqa", split="validation[:200]")
dataset
```

```
Dataset({
    features: ['question', 'question_type', 'question_id', 'image_id', 'answer_type', 'label'],
    num_rows: 200
})
```

## Remove the label column

```python
dataset = dataset.remove_columns(['question_type', 'question_id', 'answer_type'])
```

## Check the image

```python
from PIL import Image

image = Image.open(dataset[0]['image_id'])
image
```
