Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in running PointConv and PPFNet for classification #26

Open
narges-tk opened this issue Feb 20, 2024 · 0 comments
Open

Issue in running PointConv and PPFNet for classification #26

narges-tk opened this issue Feb 20, 2024 · 0 comments

Comments

@narges-tk
Copy link

I am getting the following error in running PointConv and PPFNet for classification. Thanks in advance for any suggestions.

**python train_PointConv_Narges.py --nclasses 9
all_data.shape (9840, 2048, 3) <class 'numpy.ndarray'>
all_label.shape (9840, 1) <class 'numpy.ndarray'>
all_data.shape (9840, 2048, 3) <class 'numpy.ndarray'>
all_label.shape (9840, 1) <class 'numpy.ndarray'>
Error raised in pointnet2 module in utils!
Either don't use pointnet2_utils or retry it's setup.
Error in pointnet2_utils! Retry setup for pointnet2_utils.
cp: cannot stat 'main.py': No such file or directory
cp: cannot stat 'model.py': No such file or directory
Namespace(batch_size=32, dataset_path='/media/emre/Data/Downloads/learning3d/../../ModelNet40/ModelNet40', dataset_type='modelnet', device='cuda:0', emb_dims=512, epochs=200, eval=False, exp_name='exp_classifier', nclasses=9, num_points=500, optimizer='Adam', pointnet='tune', pretrained='', resume='', seed=1234, start_epoch=0, symfn='max', workers=4)
(762, 500, 6)
(189, 500, 6)
0%| | 0/23 [00:01<?, ?it/s]
Traceback (most recent call last):
File "train_PointConv_Narges.py", line 253, in
main()
File "train_PointConv_Narges.py", line 250, in main
train(args, model, train_loader, test_loader, boardio, textio, checkpoint)
File "train_PointConv_Narges.py", line 129, in train
train_loss, train_accuracy = train_one_epoch(args.device, model, train_loader, optimizer)
File "train_PointConv_Narges.py", line 93, in train_one_epoch
output = model(points)
File "/home/emre/anaconda3/envs/learning3d3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/media/emre/Data/Downloads/learning3d/learning3d/models/classifier.py", line 23, in forward
output = self.pooling(self.feature_model(input_data))
File "/home/emre/anaconda3/envs/learning3d3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/media/emre/Data/Downloads/learning3d/learning3d/models/pooling.py", line 16, in forward
return torch.max(input, 2)[0].contiguous()
IndexError: Dimension out of range (expected to be in range of [-2, 1], but got 2)
(learning3d3) emre@emre:/media/emre/Data/Downloads/learning3d$ python train_PointConv_Narges.py --nclasses 9
all_data.shape (9840, 2048, 3) <class 'numpy.ndarray'>
all_label.shape (9840, 1) <class 'numpy.ndarray'>
all_data.shape (9840, 2048, 3) <class 'numpy.ndarray'>
all_label.shape (9840, 1) <class 'numpy.ndarray'>
Error raised in pointnet2 module in utils!
Either don't use pointnet2_utils or retry it's setup.
Error in pointnet2_utils! Retry setup for pointnet2_utils.
cp: cannot stat 'main.py': No such file or directory
cp: cannot stat 'model.py': No such file or directory
Namespace(batch_size=32, dataset_path='/media/emre/Data/Downloads/learning3d/../../ModelNet40/ModelNet40', dataset_type='modelnet', device='cuda:0', emb_dims=512, epochs=200, eval=False, exp_name='exp_classifier', nclasses=9, num_points=500, optimizer='Adam', pointnet='tune', pretrained='', resume='', seed=1234, start_epoch=0, symfn='max', workers=4)
(762, 500, 6)
(189, 500, 6)
0%| | 0/23 [00:01<?, ?it/s]
Traceback (most recent call last):
File "train_PointConv_Narges.py", line 253, in
main()
File "train_PointConv_Narges.py", line 250, in main
train(args, model, train_loader, test_loader, boardio, textio, checkpoint)
File "train_PointConv_Narges.py", line 129, in train
train_loss, train_accuracy = train_one_epoch(args.device, model, train_loader, optimizer)
File "train_PointConv_Narges.py", line 93, in train_one_epoch
output = model(points)
File "/home/emre/anaconda3/envs/learning3d3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/media/emre/Data/Downloads/learning3d/learning3d/models/classifier.py", line 23, in forward
output = self.pooling(self.feature_model(input_data))
File "/home/emre/anaconda3/envs/learning3d3/lib/python3.8/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, kwargs)
File "/media/emre/Data/Downloads/learning3d/learning3d/models/pooling.py", line 16, in forward
return torch.max(input, 2)[0].contiguous()
IndexError: Dimension out of range (expected to be in range of [-2, 1], but got 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant