PoinTr icon indicating copy to clipboard operation
PoinTr copied to clipboard

pointnet2_ops_lib compilation failed

Open YiLin32Wang opened this issue 2 years ago • 6 comments

Hi xumin,

Thanks for the great work and the well organized code! I came across this problem on installing the pointnet2_ops_lib from the pip address you give here. pip install "git+git://github.com/erikwijmans/Pointnet2_PyTorch.git#egg=pointnet2_ops&subdirectory=pointnet2_ops_lib" So I referred to the original Pointnet2_Pytorch project and tried to install it from source using git clone + pip install pointnet2_ops_lib/. However, I was stuck in the compilation error as shown below: image image image

I haven't found any solutions to this on the original project page, so I tried to seek for help here. Have you ever encountered with the same problem?

YiLin32Wang avatar Jan 10 '23 16:01 YiLin32Wang

hi @YiLin32Wang, can you check the version of the gcc and g++ in your server

yuxumin avatar Jan 10 '23 16:01 yuxumin

hi @YiLin32Wang, can you check the version of the gcc and g++ in your server

Hi, the gcc version is 7.5.0 on my server.

YiLin32Wang avatar Jan 13 '23 19:01 YiLin32Wang

I'm also trying to code the python version directly to replace the pointnet2_uils. Do you think it possible if I directly replace the pointnet2_utils.gather_operation() by torch.gather()?
It seems that there's little difference in the terms of their returns, since what we're trying to do here is just indexing the point feature vectors according to the fps_idx.

YiLin32Wang avatar Jan 13 '23 20:01 YiLin32Wang

Do you think it possible if I directly replace the pointnet2_utils.gather_operation() by torch.gather()?

Yes.

The version of gcc meets the requirements. It seems that the problems come from the unsupported gpu+cuda. So what is your gpu model and cuda version?

yuxumin avatar Jan 14 '23 03:01 yuxumin

Sorry for late reply! I'm using RTX2080Ti with CUDA 11.4.

So far I haven't succeeded in installing the pointnet2_utils so I'm using another PyTorch implementation and torch.gather() to replace the fps and gather operation.

YiLin32Wang avatar Jan 30 '23 18:01 YiLin32Wang

Sorry for late reply! I'm using RTX2080Ti with CUDA 11.4.

So far I haven't succeeded in installing the pointnet2_utils so I'm using another PyTorch implementation and torch.gather() to replace the fps and gather operation.

Can you give me your modified code, I'd appreciate it!

Duoduo-y avatar Mar 01 '24 13:03 Duoduo-y