fix test2 files path
Browse files102 unmodified lines1031041051061071081095 unmodified lines115116117118119120121122123102 unmodified lines),datasets.SplitGenerator(name=datasets.Split.TEST,gen_kwargs={"files_paths": [files_path[self.config.name]["test1"], files_path[self.config.name]["test1"]], "images_paths": [test1_img_path, test2_img_path], "split_name": "test"},),]5 unmodified linescommon_img_identifier = ex["identifier"].split("-")left_img_identifier = f"{common_img_identifier[0]}-{common_img_identifier[1]}-{common_img_identifier[2]}-img0.png"right_img_identifier = f"{common_img_identifier[0]}-{common_img_identifier[1]}-{common_img_identifier[2]}-img1.png"if i== 1:print(left_img_identifier)print(right_img_identifier)if split_name == "train":directory = str(ex["directory"])left_image_path = str(os.path.join(images_paths[i], directory, left_img_identifier))102 unmodified lines1031041051061071081095 unmodified lines115116117118119120102 unmodified lines),datasets.SplitGenerator(name=datasets.Split.TEST,gen_kwargs={"files_paths": [files_path[self.config.name]["test1"], files_path[self.config.name]["test2"]], "images_paths": [test1_img_path, test2_img_path], "split_name": "test"},),]5 unmodified linescommon_img_identifier = ex["identifier"].split("-")left_img_identifier = f"{common_img_identifier[0]}-{common_img_identifier[1]}-{common_img_identifier[2]}-img0.png"right_img_identifier = f"{common_img_identifier[0]}-{common_img_identifier[1]}-{common_img_identifier[2]}-img1.png"if split_name == "train":directory = str(ex["directory"])left_image_path = str(os.path.join(images_paths[i], directory, left_img_identifier))
NLVR2.py+1-4