second.pytorch: cannot import name 'spconv_utils' from 'spconv'

Hello! I am currently trying to implement SECOND with PointPillars support.

I successfully installed spconv, but when I try to python create_data.py kitti_data_prep --data_path=KITTI_DATASET_ROOT, I get the following error:

$ python create_data.py kitti_data_prep --data_path=$KITTI_DATASET_ROOT Traceback (most recent call last):  File “create_data.py”, line 7, in <module>   import second.data.kitti_dataset as kitti_ds  File “/home/…/SECOND_v1-5/second.pytorch/second/data/kitti_dataset.py”, line 8, in <module>   from second.core import box_np_ops  File “/home/…/SECOND_v1-5/second.pytorch/second/core/box_np_ops.py”, line 5, in <module>   from spconv.utils import rbbox_iou, rbbox_intersection  File “/home/…/SparseConvNet/spconv/spconv/init.py”, line 20, in <module>   from spconv import utils  File “/home/…/SparseConvNet/spconv/spconv/utils/init.py”, line 16, in <module>   from spconv import spconv_utils ImportError: cannot import name ‘spconv_utils’ from ‘spconv’ (/home/…/spconv/spconv/init.py)

Any help would be appreciated! ~Hunkzer

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 17 (1 by maintainers)

Most upvoted comments

I fixed this by adding: export PYTHONPATH=/path_to_repo/spconv/spconv/:$PYTHONPATH to my .bashrc file.

the newest code already have pointpillars support. please use python setup.py bdist_wheel and cd ./dist && pip install xxx.whl to install spconv.

thanks a lot!! I solved my problem following your instructions!!! ^v^