Leyo commited on
Commit
adff023
·
1 Parent(s): 98eeb30

add prints

Browse files
Files changed (1) hide show
  1. NLVR2.py +3 -0
NLVR2.py CHANGED
@@ -115,6 +115,9 @@ class NLVR2Dataset(datasets.GeneratorBasedBuilder):
115
  common_img_identifier = ex["identifier"].split("-")
116
  left_img_identifier = f"{common_img_identifier[0]}-{common_img_identifier[1]}-{common_img_identifier[2]}-img0.png"
117
  right_img_identifier = f"{common_img_identifier[0]}-{common_img_identifier[1]}-{common_img_identifier[2]}-img1.png"
 
 
 
118
  if split_name == "train":
119
  directory = str(ex["directory"])
120
  left_image_path = str(os.path.join(images_paths[i], directory, left_img_identifier))
 
115
  common_img_identifier = ex["identifier"].split("-")
116
  left_img_identifier = f"{common_img_identifier[0]}-{common_img_identifier[1]}-{common_img_identifier[2]}-img0.png"
117
  right_img_identifier = f"{common_img_identifier[0]}-{common_img_identifier[1]}-{common_img_identifier[2]}-img1.png"
118
+ if i== 1:
119
+ print(left_img_identifier)
120
+ print(right_img_identifier)
121
  if split_name == "train":
122
  directory = str(ex["directory"])
123
  left_image_path = str(os.path.join(images_paths[i], directory, left_img_identifier))