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

RuntimeError: radix_sort: failed on 1st step: cudaErrorInvalidDevice: invalid device ordinal #299

Closed
luoxiaoliaolan opened this issue Jun 9, 2021 · 2 comments
Assignees

Comments

@luoxiaoliaolan
Copy link

Hi:
I want to use the updated pointrcnn model to predict custom point cloud data. I modified the configuration file (pointrcnn_kitti.yml) according to the previous pointpillars detection method.
Besides, I updated open3d 0.13.0, The environment is: pytorch 1.7.1 , CUDA 11.0 ,1 GPU:GeForce RTX 2070 SUPER
When I loaded the pointrcnn model for inference, I encountered this error:
Traceback (most recent call last):
File "/home/lixiang/anaconda3/envs/open3d/lib/python3.7/site-packages/open3d/_ml3d/torch/pipelines/object_detection.py", line 75, in run_inference
results = model(data)
File "/home/lixiang/anaconda3/envs/open3d/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/lixiang/anaconda3/envs/open3d/lib/python3.7/site-packages/open3d/_ml3d/torch/models/point_rcnn.py", line 126, in forward
backbone_xyz) # (B, M, 7)
File "/home/lixiang/anaconda3/envs/open3d/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/lixiang/anaconda3/envs/open3d/lib/python3.7/site-packages/open3d/_ml3d/torch/models/point_rcnn.py", line 1106, in forward
scores_single, proposals_single, order_single)
File "/home/lixiang/anaconda3/envs/open3d/lib/python3.7/site-packages/open3d/_ml3d/torch/models/point_rcnn.py", line 1185, in distance_based_proposal
keep_idx = nms(bev, cur_scores, nms_thres)
File "/home/lixiang/anaconda3/envs/open3d/lib/python3.7/site-packages/open3d/ml/torch/python/ops.py", line 129, in nms
nms_overlap_thresh=nms_overlap_thresh)
RuntimeError: radix_sort: failed on 1st step: cudaErrorInvalidDevice: invalid device ordinal

This error seems to be a version issue,but I am not sure how to solve it.
Finally, I would like to know, the pointrcnn model provided can only detect one object('Car'), why can't it detect other objects?

@sanskar107 sanskar107 self-assigned this Sep 28, 2021
@sanskar107
Copy link
Collaborator

Using the Open3D PyTorch ops with CUDA 11 may have stability issues. We recommend to compile PyTorch from source with compile flags '-Xcompiler -fno-gnu-unique' or use the PyTorch wheels at https://github.com/isl org/open3d_downloads/releases/tag/torch1.8.1

See isl-org/Open3D#3324 and pytorch/pytorch#52663 for mor information on this problem.

Regarding PointRCNN, we currently support only 'Car', we welcome community contributions in this area.

@twmht
Copy link

twmht commented Nov 10, 2021

@sanskar107

the link to https://github.com/islorg/open3d_downloads/releases/tag/torch1.8.1 is dead. any update on this?

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

3 participants