fix train img path
Browse files
NLVR2.py
CHANGED
|
@@ -81,11 +81,11 @@ class NLVR2Dataset(datasets.GeneratorBasedBuilder):
|
|
| 81 |
files_path = dl_manager.download_and_extract(urls)
|
| 82 |
|
| 83 |
images_files = {
|
| 84 |
-
"train": os.path.join(_URL_IMG,
|
| 85 |
"validation": os.path.join(_URL_IMG, f'{_SPLITS["validation"]}_img.zip'),
|
| 86 |
"test1": os.path.join(_URL_IMG, f'{_SPLITS["test1"]}_img.zip'),
|
| 87 |
}
|
| 88 |
-
train_img_path = os.path.join(dl_manager.extract(images_files["train"]),
|
| 89 |
validation_img_path = os.path.join(dl_manager.download_and_extract(images_files["validation"]), "dev")
|
| 90 |
test1_img_path = os.path.join(dl_manager.download_and_extract(images_files["test1"]), "test1")
|
| 91 |
return [
|
|
|
|
| 81 |
files_path = dl_manager.download_and_extract(urls)
|
| 82 |
|
| 83 |
images_files = {
|
| 84 |
+
"train": os.path.join(_URL_IMG, f'{_SPLITS["train"]}_img.zip'),
|
| 85 |
"validation": os.path.join(_URL_IMG, f'{_SPLITS["validation"]}_img.zip'),
|
| 86 |
"test1": os.path.join(_URL_IMG, f'{_SPLITS["test1"]}_img.zip'),
|
| 87 |
}
|
| 88 |
+
train_img_path = os.path.join(dl_manager.extract(images_files["train"]), "images", "train")
|
| 89 |
validation_img_path = os.path.join(dl_manager.download_and_extract(images_files["validation"]), "dev")
|
| 90 |
test1_img_path = os.path.join(dl_manager.download_and_extract(images_files["test1"]), "test1")
|
| 91 |
return [
|