def get_label(self, idx): if not cfg.DATA_CONFIG.TS_DATA: label_file = os.path.join(self.root_split_path, 'label_2', '%s.txt' % idx) assert os.path.exists(label_file) return object3d_utils.get_objects_from_label(label_file) else: label_file = os.path.join(self.root_split_path, 'ts2kitti_label', '%s.txt' % idx) assert os.path.exists(label_file) return object3d_utils.get_objects_from_label(label_file)
def get_label(self, idx): """ Read the label_2 file of this idx and parse all the objects from it. :param idx: :return: """ label_file = os.path.join(self.root_split_path, 'label_2', '%s.txt' % idx) assert os.path.exists(label_file) return object3d_utils.get_objects_from_label(label_file)
def get_label(self, idx): label_file = os.path.join(self.root_split_path, 'label_2', '%s.txt' % idx) assert os.path.exists(label_file) return object3d_utils.get_objects_from_label(label_file)