Jinchen Ge commited on
Commit
6019dbe
1 Parent(s): 810aa11

Rename splits

Browse files
Files changed (1) hide show
  1. gqa-lxmert.py +4 -4
gqa-lxmert.py CHANGED
@@ -44,9 +44,9 @@ seeking to address key shortcomings of previous visual question answering (VQA)
44
 
45
  _URLS = {
46
  "train": "https://nlp.cs.unc.edu/data/lxmert_data/gqa/train.json",
47
- "val": "https://nlp.cs.unc.edu/data/lxmert_data/gqa/valid.json",
48
  "trainval_feat": "https://nlp.cs.unc.edu/data/lxmert_data/vg_gqa_imgfeat/vg_gqa_obj36.zip",
49
- "test": "https://nlp.cs.unc.edu/data/lxmert_data/gqa/testdev.json",
50
  "test_feat": "https://nlp.cs.unc.edu/data/lxmert_data/vg_gqa_imgfeat/gqa_testdev_obj36.zip",
51
  "ans2label": "https://raw.githubusercontent.com/airsplay/lxmert/master/data/gqa/trainval_ans2label.json",
52
  }
@@ -102,11 +102,11 @@ class GqaLxmert(datasets.GeneratorBasedBuilder):
102
  ),
103
  datasets.SplitGenerator(
104
  name=datasets.Split.VALIDATION,
105
- gen_kwargs={"filepath": dl_dir["val"], "testset": False},
106
  ),
107
  datasets.SplitGenerator(
108
  name=datasets.Split.TEST,
109
- gen_kwargs={"filepath": dl_dir["test"], "testset": True},
110
  ),
111
  ]
112
 
 
44
 
45
  _URLS = {
46
  "train": "https://nlp.cs.unc.edu/data/lxmert_data/gqa/train.json",
47
+ "valid": "https://nlp.cs.unc.edu/data/lxmert_data/gqa/valid.json",
48
  "trainval_feat": "https://nlp.cs.unc.edu/data/lxmert_data/vg_gqa_imgfeat/vg_gqa_obj36.zip",
49
+ "testdev": "https://nlp.cs.unc.edu/data/lxmert_data/gqa/testdev.json",
50
  "test_feat": "https://nlp.cs.unc.edu/data/lxmert_data/vg_gqa_imgfeat/gqa_testdev_obj36.zip",
51
  "ans2label": "https://raw.githubusercontent.com/airsplay/lxmert/master/data/gqa/trainval_ans2label.json",
52
  }
 
102
  ),
103
  datasets.SplitGenerator(
104
  name=datasets.Split.VALIDATION,
105
+ gen_kwargs={"filepath": dl_dir["valid"], "testset": False},
106
  ),
107
  datasets.SplitGenerator(
108
  name=datasets.Split.TEST,
109
+ gen_kwargs={"filepath": dl_dir["testdev"], "testset": True},
110
  ),
111
  ]
112