def load_path(self, list_filename): lines = read_all_lines(list_filename) splits = [line.split() for line in lines] left_images = [x[0] for x in splits] right_images = [x[1] for x in splits] disp_images = [x[2] for x in splits] return left_images, right_images, disp_images
def load_path(self, list_filename): lines = read_all_lines(list_filename) splits = [line.split() for line in lines] left_images = [x[0] for x in splits] right_images = [x[1] for x in splits] left_disp = [x[2] for x in splits] right_disp = [x[2][:-13] + 'right/' + x[2][-8:] for x in splits] return left_images, right_images, left_disp, right_disp
def load_path(self, list_filename): lines = read_all_lines(list_filename) splits = [line.split() for line in lines] left_images = [x[0] for x in splits] right_images = [x[1] for x in splits] if len(splits[0]) == 2: # ground truth not available return left_images, right_images, None else: disp_images = [x[2] for x in splits] return left_images, right_images, disp_images
def load_path(self, list_filename): lines = read_all_lines(list_filename) splits = [line.split() for line in lines] ori_images = [x[0] for x in splits] gt_images = [x[1] for x in splits] return ori_images, gt_images