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

pointops_cuda error #12

Closed
mandalanil opened this issue Jan 13, 2024 · 5 comments
Closed

pointops_cuda error #12

mandalanil opened this issue Jan 13, 2024 · 5 comments

Comments

@mandalanil
Copy link

I have installed everything separately as requirements.txt is not valid anymore. I am facing problem while trying to train the model. please help me to solve it.
from models.transformer import Group
File "/home/amandal2023/Desktop/deep_learning3d/Partial2Complete/models/transformer.py", line 6, in
from extensions.pointops.functions import pointops
File "/home/amandal2023/Desktop/deep_learning3d/Partial2Complete/extensions/pointops/functions/pointops.py", line 4, in
import pointops_cuda
ModuleNotFoundError: No module named 'pointops_cuda'

@JiayuLiu666
Copy link

I have the same issue

@CuiRuikai
Copy link
Owner

This is a common issue.
Please cd to extensions/pointops and run python setup,py install.

If you have complied it and had error message: undefined symbol: _ZN6caffe26detail37_typeMetaDataInstance_preallocated_32E
Then, please check the pytorch version. I run my experiments using 1.12, a higher version might lead to this problem.

@QianLi-cell
Copy link

You see, I used pytorch 1.12 cuda 11.6 2080ti to run the code, and cd to extensions/pointops and run python setup,py install, but this error still occurs.
import pointops_cuda
ImportError: /root/miniconda3/envs/P2C/lib /python3.8/site-packages/pointops-0.0.0-py3.8-linux-x86_64.egg/pointops_cuda.cpython-38-x86_64-linux-gnu.so: undefined symbol:_ZN8pybind116detail11type_casterIN2at6TensorEvE4loadENS_6handleEb

@CuiRuikai
Copy link
Owner

If you cannot compile it, you can use the pre-build wheel. Please refer to https://github.com/yuxumin/PoinTr

pip install "git+https://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib"

Another option is to use pure-PyTorch operations to replace the fps and gather KNN operations. You can refer to

https://github.com/fxia22/pointnet.pytorch

@QianLi-cell
Copy link

谢谢您

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

4 participants