Remove invalid testA and testB from refcocog.
Browse files- referit.py +4 -1
referit.py
CHANGED
@@ -155,7 +155,10 @@ class ReferitDataset(datasets.GeneratorBasedBuilder):
|
|
155 |
# urls = _URLS[self.config.name]
|
156 |
# data_dir = dl_manager.download_and_extract(urls)
|
157 |
splits = []
|
158 |
-
|
|
|
|
|
|
|
159 |
splits.append(datasets.SplitGenerator(
|
160 |
name=datasets.NamedSplit(split),
|
161 |
gen_kwargs={
|
|
|
155 |
# urls = _URLS[self.config.name]
|
156 |
# data_dir = dl_manager.download_and_extract(urls)
|
157 |
splits = []
|
158 |
+
split_names = ("train", "val", "test")
|
159 |
+
if self.config.name in ("refcoco", "refcoco+"):
|
160 |
+
split_names += ("testA", "testB")
|
161 |
+
for split in split_names:
|
162 |
splits.append(datasets.SplitGenerator(
|
163 |
name=datasets.NamedSplit(split),
|
164 |
gen_kwargs={
|