RepSurf icon indicating copy to clipboard operation
RepSurf copied to clipboard

TypeError: knnquery_cuda()

Open 0belle opened this issue 2 years ago • 4 comments

File "/home/RepSurf/classification/modules/pointnet2_utils.py", line 110, in query_knn_point return knnquery(k, xyz, new_xyz) File "/home/RepSurf/classification/modules/pointops/functions/pointops.py", line 315, in forward pointops_cuda.knnquery_cuda(b, n, m, nsample, xyz, new_xyz, idx, dist2) TypeError: knnquery_cuda(): incompatible function arguments. The following argument types are supported: 1. (arg0: int, arg1: int, arg2: at::Tensor, arg3: at::Tensor, arg4: at::Tensor, arg5: at::Tensor, arg6: at::Tensor, arg7: at::Tensor) -> None

0belle avatar Feb 28 '23 06:02 0belle

File "/home/RepSurf/classification/modules/pointnet2_utils.py", line 110, in query_knn_point return knnquery(k, xyz, new_xyz) File "/home/RepSurf/classification/modules/pointops/functions/pointops.py", line 315, in forward pointops_cuda.knnquery_cuda(b, n, m, nsample, xyz, new_xyz, idx, dist2) TypeError: knnquery_cuda(): incompatible function arguments. The following argument types are supported:

  1. (arg0: int, arg1: int, arg2: at::Tensor, arg3: at::Tensor, arg4: at::Tensor, arg5: at::Tensor, arg6: at::Tensor, arg7: at::Tensor) -> None

I have also encountered this problem. May I ask how you resolved it

XuHan-CN avatar Nov 18 '23 07:11 XuHan-CN

Could you please provide a solution to this issue? I have been stuck on it for quite some time. If there is a solution, please do inform me. Thank you."

ZHIBINJIAN avatar Dec 01 '23 02:12 ZHIBINJIAN

You have to create a new environment and rebuild the pointops. There are something different between the classification task and segmentation task.

XuHan-CN avatar Dec 01 '23 02:12 XuHan-CN