MCPcopy Create free account
hub / github.com/MetaSLAM/SphereVLAD / load_file_func

Method load_file_func

dataloader/pittsburgh.py:40–50  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

pc_normalizeFunction · 0.90

Tested by

no test coverage detected