Leyo commited on
Commit
2c0ef12
·
1 Parent(s): 7d128ec
Files changed (1) hide show
  1. NLVR2.py +1 -1
NLVR2.py CHANGED
@@ -111,7 +111,7 @@ class NLVR2Dataset(datasets.GeneratorBasedBuilder):
111
  left_img_identifier = f"{split_name}-{common_img_identifier[1]}-{common_img_identifier[2]}-img0.png"
112
  right_img_identifier = f"{split_name}-{common_img_identifier[1]}-{common_img_identifier[2]}-img1.png"
113
  if split_name == "train":
114
- directory = ex["directory"]
115
  left_image_path = str(os.path.join(images_path, directory, left_img_identifier))
116
  right_image_path = str(os.path.join(images_path, directory, right_img_identifier))
117
  else:
 
111
  left_img_identifier = f"{split_name}-{common_img_identifier[1]}-{common_img_identifier[2]}-img0.png"
112
  right_img_identifier = f"{split_name}-{common_img_identifier[1]}-{common_img_identifier[2]}-img1.png"
113
  if split_name == "train":
114
+ directory = str(ex["directory"])
115
  left_image_path = str(os.path.join(images_path, directory, left_img_identifier))
116
  right_image_path = str(os.path.join(images_path, directory, right_img_identifier))
117
  else: