File size: 993 Bytes
327500b
 
 
 
 
 
afb8b2b
 
 
939367e
afb8b2b
939367e
 
 
52f9f2f
939367e
52f9f2f
939367e
52f9f2f
 
939367e
 
 
 
0115465
 
 
cd0a747
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
task_categories:
- visual-question-answering
language:
- en
---
### How to install?

```python
!pip install datasets -q
from huggingface_hub import snapshot_download
import pandas as pd
import matplotlib.pyplot as plt

# First step: download an entire datatset
snapshot_download(repo_id="Aborevsky01/CLEVR-BT-DB", repo_type="dataset", local_dir='path-to-your-local-dir')
# Second step: unarchive the images for VQA
!unzip [path-to-your-local-dir]/[type-of-task]/images.zip

# Example of the triplet (image - question - answer)
plt.imshow(plt.imread('[path-to-your-local-dir]/images/test/Reason_0.png'))
print(pd.read_csv('[path-to-your-local-dir]/[type-of-task]/Reason_test_questions.csv').iloc[0].question)
print([str(line) for line in open('[path-to-your-local-dir]/[type-of-task]/correct_answ.txt', 'rb')][0])
```

### Output of code

![Sample image](sample_image.png)

**Q**: There is an object to the left of a cylinder to the right of a cylinder, what color is it? 

**A**: b'blue\n'