CuiRuikai / Partial2Complete

[ICCV 2023] P2C: Self-Supervised Point Cloud Completion from Single Partial Clouds
MIT License
159 stars 9 forks source link

question about pointops #18

Open jintiannixuexile opened 6 months ago

jintiannixuexile commented 6 months ago

after install pointops, ImportError: /data/lab108/dxf/anaconda3/envs/p2c/lib/python3.7/site-packages/pointops-0.0.0-py3.7-linux-x86_64.egg/pointops_cuda.cpython-37m-x86_64-linux-gnu.so: undefined symbol: _ZN8pybind116detail11type_casterIN2at6TensorEvE4loadENS_6handleEb thanks

CuiRuikai commented 6 months ago

This issue is caused by pointops lib, and it is very common, but I do not have an exact solution to this issue. This lib is adopted from https://github.com/POSTECH-CVLab/point-transformer/tree/master/lib/pointops The difference is that I commented all #include <THC/THC.h> in the source code. The reason is <THC/THC.h> is removed from pytorch/cuda from a previous version, might be cuda 10.x. I can compile this without problems. after commented this line. You can copy the original version from point transformer repo if necessary. It might be helpful to have a look on their issue page. There are many similar issues. https://github.com/POSTECH-CVLab/point-transformer/issues/53

A possible solution is install pytorch 1.12 with cuda 11.6.

kefusong commented 6 months ago

I have encountered this error before. Perhaps you compiled pointops using a different version of PyTorch. When you change your PyTorch version, you should delete your compiled files and recompile from scratch.

jintiannixuexile commented 6 months ago

Could you tell me your environment configuration, I can't run it with the author's pytorch 1.12 and cuda 11.6

我以前遇到过这个错误。也许您使用不同版本的 PyTorch 编译了 pointops。更改 PyTorch 版本时,应删除已编译的文件并从头开始重新编译。

kefusong commented 6 months ago

I am utilizing the RTX 4080 for this task. My environment is configured with the following versions: Python 3.9, Open3D 0.14.1, PyTorch 1.13.1, and CUDA 11.7.