Leyo commited on
Commit
7d128ec
·
1 Parent(s): 035a6d2

fix train img path

Browse files
Files changed (1) hide show
  1. NLVR2.py +2 -2
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, "images", 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"]), "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 [