Skip to content

Commit

Permalink
bugfix modelnet features (no effect on performance, though)
Browse files Browse the repository at this point in the history
  • Loading branch information
mys007 committed Aug 25, 2017
1 parent 7f39ef9 commit 2f6ff3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pointcloud_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ def get_modelnet(args, pyramid_conf, training):
def loader(filename, test_angle=None):
P = pcl.load(filename).to_array()
cls = classmap['_'.join(os.path.basename(filename).split('_')[:-1])]
F = np.ones((P.shape[0],1), dtype=np.float32) # no point features in modelnet

#transform into ball of diameter 32 (obj scale in modelnet has no meaning, original meshes have random sizes)
# (in the paper we used a unit ball and ./32 grid sizes, this is equivalent in effect)
Expand Down Expand Up @@ -190,6 +189,7 @@ def loader(filename, test_angle=None):
# coarsen to initial resolution (btw, axis-aligned quantization of rigidly transformed cloud adds jittering noise)
P -= np.min(P,axis=0) #move to positive octant (voxelgrid has fixed boundaries at axes planes)
cloud = pcu.voxelgrid(pcl.PointCloud(P.astype(np.float32)), pyramid_conf[0][0])
F = np.ones((cloud.size,1), dtype=np.float32) # no point features in modelnet

graphs, poolmaps = pcu.create_graph_pyramid(args, cloud, pyramid_conf)

Expand Down

0 comments on commit 2f6ff3c

Please sign in to comment.