Skip to content

Commit

Permalink
Update ModelNetDataLoader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yanx27 authored Apr 5, 2021
1 parent f7a8a93 commit 8e26b85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data_utils/ModelNetDataLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ def __len__(self):
def _get_item(self, index):
if self.process_data:
point_set, label = self.list_of_points[index], self.list_of_labels[index]
point_set[:, 0:3] = pc_normalize(point_set[:, 0:3])
else:
fn = self.datapath[index]
cls = self.classes[self.datapath[index][0]]
Expand All @@ -126,7 +125,8 @@ def _get_item(self, index):
point_set = farthest_point_sample(point_set, self.npoints)
else:
point_set = point_set[0:self.npoints, :]


point_set[:, 0:3] = pc_normalize(point_set[:, 0:3])
if not self.use_normals:
point_set = point_set[:, 0:3]

Expand Down

0 comments on commit 8e26b85

Please sign in to comment.