Datasets:
Commit
·
939367e
1
Parent(s):
327500b
Update README.md
Browse files
README.md
CHANGED
@@ -7,7 +7,14 @@ language:
|
|
7 |
### How to install?
|
8 |
|
9 |
```python
|
10 |
-
!pip install datasets
|
11 |
from huggingface_hub import snapshot_download
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
### How to install?
|
8 |
|
9 |
```python
|
10 |
+
!pip install datasets -q
|
11 |
from huggingface_hub import snapshot_download
|
12 |
+
import pandas as pd
|
13 |
+
import matplotlib.pyplot as plt
|
14 |
+
|
15 |
+
snapshot_download(repo_id="Aborevsky01/CLEVR-BT-DB", repo_type="dataset", local_dir='path-to-your-local-dir')
|
16 |
+
!unzip [path-to-your-local-dir]/[type-of-task]/images.zip
|
17 |
+
plt.imshow(plt.imread('[path-to-your-local-dir]/images/test/Reason_0.png'))
|
18 |
+
print(pd.read_csv('[path-to-your-local-dir]/[type-of-task]/Reason_test_questions.csv').iloc[0].question)
|
19 |
+
print([str(line) for line in open('[path-to-your-local-dir]/[type-of-task]/correct_answ.txt', 'rb')][0])
|
20 |
+
```
|