def load_depth_gts(gt_dir, dir_LFimages):
    w_views = 9
    n_views = (w_views ** 2)
    traindata_label = np.zeros((len(dir_LFimages), 512, 512, n_views), np.float32)
    image_id = 0
    for dir_LFimage in dir_LFimages:
        sample_name = dir_LFimage.split('/')[(- 1)]
        print(('loading additional gt.. ' + sample_name))
        for i in range(n_views):
            tmp = np.float32(read_pfm(((gt_dir + sample_name) + ('/gt_disp_lowres_Cam0%.2d.pfm' % i))))
            traindata_label[image_id, :, :, i] = tmp
            del tmp
        image_id = (image_id + 1)
    return traindata_label
def load_depth_gts(gt_dir, dir_LFimages):
    w_views = 9
    n_views = (w_views ** 2)
    traindata_label = np.zeros((len(dir_LFimages), 512, 512, n_views), np.float32)
    image_id = 0
    for dir_LFimage in dir_LFimages:
        sample_name = dir_LFimage.split('/')[(- 1)]
        print(('loading additional gt.. ' + sample_name))
        for i in range(n_views):
            tmp = np.float32(read_pfm(((gt_dir + sample_name) + ('/gt_disp_lowres_Cam0%.2d.pfm' % i))))
            traindata_label[image_id, :, :, i] = tmp
            del tmp
        image_id = (image_id + 1)
    return traindata_label