(self, filename)
| 38 | self.file_idxs = np.arange(0, len(self.queries.keys())) |
| 39 | |
| 40 | def load_file_func(self, filename): |
| 41 | if self.config.MODEL.TYPE == "Lidar" or self.branch == "Lidar": |
| 42 | pcd = np.asarray(o3d.io.read_point_cloud(filename + ".pcd").points) |
| 43 | if pcd.shape[0] != 4096: |
| 44 | raise ValueError('{}.pcd does not have sufficient points'.format(filename)) |
| 45 | pcd = pc_normalize(pcd) |
| 46 | output = self.lidar_data_aug(pcd) |
| 47 | elif self.config.MODEL.TYPE == "LiSPH" or self.branch == "LiSPH": |
| 48 | sph_img = Image.open(filename + "_sph.png") |
| 49 | output = self.lisph_data_aug(sph_img) |
| 50 | return output |
| 51 | |
| 52 | def generate_pickles(self): |
| 53 | if self.config.TRAINING.IS_TRAIN: |
nothing calls this directly
no test coverage detected