Skip to content

Commit

Permalink
updated codes for classification
Browse files Browse the repository at this point in the history
  • Loading branch information
yanx27 committed Mar 20, 2021
1 parent e101947 commit bfd5b39
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion data_utils/ModelNetDataLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def _get_item(self, index):
if not self.use_normals:
point_set = point_set[:, 0:3]


return point_set, label[0]

def __getitem__(self, index):
Expand Down
3 changes: 1 addition & 2 deletions test_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,7 @@ def log_string(str):

'''DATA LOADING'''
log_string('Load dataset ...')
# data_path = 'data/modelnet40_normal_resampled/'
data_path = '/data/dataset/modelnet40_normal_resampled/'
data_path = 'data/modelnet40_normal_resampled/'

test_dataset = ModelNetDataLoader(root=data_path, args=args, split='test', process_data=False)
testDataLoader = torch.utils.data.DataLoader(test_dataset, batch_size=args.batch_size, shuffle=False, num_workers=10)
Expand Down
3 changes: 1 addition & 2 deletions train_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ def log_string(str):

'''DATA LOADING'''
log_string('Load dataset ...')
# data_path = 'data/modelnet40_normal_resampled/'
data_path = '/data/dataset/modelnet40_normal_resampled/'
data_path = 'data/modelnet40_normal_resampled/'

train_dataset = ModelNetDataLoader(root=data_path, args=args, split='train', process_data=args.process_data)
test_dataset = ModelNetDataLoader(root=data_path, args=args, split='test', process_data=args.process_data)
Expand Down

0 comments on commit bfd5b39

Please sign in to comment.