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

Cannot import spconv in the 3D-U-Net repo #11

Closed
NCTU-VRDL opened this issue Oct 19, 2021 · 2 comments
Closed

Cannot import spconv in the 3D-U-Net repo #11

NCTU-VRDL opened this issue Oct 19, 2021 · 2 comments

Comments

@NCTU-VRDL
Copy link

NCTU-VRDL commented Oct 19, 2021

Hi @liuzhengzhe!,

I have followed all the steps to successfully install the spconv and import it without any problems, including from spconv import spconv_utils. However, I cannot import spconv inside the model repo (3D-U-Net, merge, relation). The error message is shown below.

     15 import numpy as np
---> 16 from spconv import spconv_utils
     17 from spconv.spconv_utils import (non_max_suppression, non_max_suppression_cpu,
     18                                  points_to_voxel_3d_np, rbbox_iou,

ImportError: cannot import name 'spconv_utils' from 'spconv' (/home/jimmy15923/mnt/project_code/One-Thing-One-Click/3D-U-Net/spconv/__init__.py)

And I can import spconv in the upper repo. Should I remove the original spconv after installation? Thank you

image

@liuzhengzhe
Copy link
Owner

liuzhengzhe commented Oct 19, 2021 via email

@NCTU-VRDL
Copy link
Author

Hi @liuzhengzhe

Thanks for your quick response. I have replaced the original spconv with a newly built one. But libcudart.so.10.1' not found.
Here are the steps

./3D-U-Net$ rm -r spconv
./3D-U-Net$ ln -s /home/jimmy15923/anaconda3/envs/pnt_group/lib/python3.7/site-packages/spconv ./
./3D-U-Net$ python -c 'import spconv'

Did I miss anything else? Thank you!
image

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

2 participants