def KITTI_loader(root,path_imgs, path_flo): imgs = [os.path.join(root,path) for path in path_imgs] flo = os.path.join(root,path_flo) return [imread(img) for img in imgs],load_flow_from_png(flo)