Update RefRef_test.py
Browse files- RefRef_test.py +3 -6
RefRef_test.py
CHANGED
@@ -58,20 +58,17 @@ class RefRef_test(datasets.GeneratorBasedBuilder):
|
|
58 |
"test": "**/transforms_test.json",
|
59 |
}
|
60 |
|
61 |
-
downloaded_files = dl_manager.download_and_extract("https://huggingface.co/datasets/eztao/RefRef_test/
|
62 |
print(downloaded_files)
|
63 |
|
64 |
-
for split in [datasets.Split.TRAIN, datasets.Split.VALIDATION, datasets.Split.TEST]:
|
65 |
-
print(split)
|
66 |
-
|
67 |
return [
|
68 |
datasets.SplitGenerator(
|
69 |
name=split,
|
70 |
gen_kwargs={
|
71 |
-
"filepaths": os.path.join(downloaded_files, f"
|
72 |
"split": split
|
73 |
},
|
74 |
-
) for split in [
|
75 |
]
|
76 |
|
77 |
# def _generate_examples(self, filepaths, split):
|
|
|
58 |
"test": "**/transforms_test.json",
|
59 |
}
|
60 |
|
61 |
+
downloaded_files = dl_manager.download_and_extract("https://huggingface.co/datasets/eztao/RefRef_test/")
|
62 |
print(downloaded_files)
|
63 |
|
|
|
|
|
|
|
64 |
return [
|
65 |
datasets.SplitGenerator(
|
66 |
name=split,
|
67 |
gen_kwargs={
|
68 |
+
"filepaths": os.path.join(downloaded_files, f"transforms_{split}.json"),
|
69 |
"split": split
|
70 |
},
|
71 |
+
) for split in ["train", "val", "test"]
|
72 |
]
|
73 |
|
74 |
# def _generate_examples(self, filepaths, split):
|