def __init__(self, datapath, list_filename, training):
    self.datapath = datapath
    (self.left_filenames, self.right_filenames, self.disp_filenames) = self.load_path(list_filename)
    self.training = training
    if self.training:
        assert (self.disp_filenames is not None)
def __init__(self, datapath, list_filename, training):
    self.datapath = datapath
    (self.left_filenames, self.right_filenames, self.disp_filenames) = self.load_path(list_filename)
    self.training = training
    if self.training:
        assert (self.disp_filenames is not None)