Spaces:
Runtime error
Runtime error
Delete demo.py
Browse files
demo.py
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
import json
|
2 |
-
import os
|
3 |
-
import os.path as osp
|
4 |
-
|
5 |
-
from tqdm import tqdm
|
6 |
-
|
7 |
-
if __name__ == "__main__":
|
8 |
-
ROOT = osp.expanduser("~/Workspace/data/Multimodal")
|
9 |
-
|
10 |
-
# construct_esnli_training_data()
|
11 |
-
# construct_vqax_training_data()
|
12 |
-
# construct_aokvqa_dataset()
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
examples = json.load(open('playground/data/instructions_explainable_dataset.json'))
|
17 |
-
|
18 |
-
for line in tqdm(examples):
|
19 |
-
image_path = f"/workingdir/yjin328/data/{line['image']}"
|
20 |
-
assert osp.exists(image_path), image_path
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|