download and extract
Browse files
NLVR2.py
CHANGED
|
@@ -96,7 +96,7 @@ class NLVR2Dataset(datasets.GeneratorBasedBuilder):
|
|
| 96 |
}
|
| 97 |
print(f"img_path:{images_files['validation']}")
|
| 98 |
# train_img_path = os.path.join(dl_manager.extract(images_files["train"]), "train_nlvr2")
|
| 99 |
-
validation_img_path = os.path.join(dl_manager.
|
| 100 |
print(f"img_path2:{validation_img_path}")
|
| 101 |
print(f"{os.path.exists(os.path.join(validation_img_path,'dev-946-1-img0.png'))}")
|
| 102 |
# test1_img_path = os.path.join(dl_manager.extract(images_files["test1"]), "test1_nlvr2")
|
|
|
|
| 96 |
}
|
| 97 |
print(f"img_path:{images_files['validation']}")
|
| 98 |
# train_img_path = os.path.join(dl_manager.extract(images_files["train"]), "train_nlvr2")
|
| 99 |
+
validation_img_path = os.path.join(dl_manager.download_and_extract(images_files["validation"]), "dev_nlvr2")
|
| 100 |
print(f"img_path2:{validation_img_path}")
|
| 101 |
print(f"{os.path.exists(os.path.join(validation_img_path,'dev-946-1-img0.png'))}")
|
| 102 |
# test1_img_path = os.path.join(dl_manager.extract(images_files["test1"]), "test1_nlvr2")
|