yonatanbitton
commited on
Commit
•
773f226
1
Parent(s):
75c8083
Update vasr.py
Browse files
vasr.py
CHANGED
@@ -105,9 +105,9 @@ class Winogavil(datasets.GeneratorBasedBuilder):
|
|
105 |
"images_dir": hf_hub_url("datasets/nlphuji/vasr", filename="vasr_images.zip")
|
106 |
})
|
107 |
|
108 |
-
train_gen = datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={**data_dir, **{"
|
109 |
-
dev_gen = datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={**data_dir, **{"
|
110 |
-
test_gen = datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={**data_dir, **{"
|
111 |
|
112 |
return [train_gen, dev_gen, test_gen]
|
113 |
|
|
|
105 |
"images_dir": hf_hub_url("datasets/nlphuji/vasr", filename="vasr_images.zip")
|
106 |
})
|
107 |
|
108 |
+
train_gen = datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={**data_dir, **{"name": "train", "files": dl_manager.download_and_extract(_URLS['train'])}})
|
109 |
+
dev_gen = datasets.SplitGenerator(name=datasets.Split.VALIDATION, gen_kwargs={**data_dir, **{"name": "train", "files": dl_manager.download_and_extract(_URLS['dev'])}})
|
110 |
+
test_gen = datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={**data_dir, **{"name": "train", "files": dl_manager.download_and_extract(_URLS['test'])}})
|
111 |
|
112 |
return [train_gen, dev_gen, test_gen]
|
113 |
|