Click here to Skip to main content
15,889,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello everyone, please I'm trying to test models from this Github project - GitHub - hlsheng1/CT3D: "Improving 3D Object Detection with Channel-wise Transformer", ICCV2021 accept![^] I have installed all the requirement, created the directories structures, I've downloaded the data to my Google drive and I'm working with Google Colab. When I tried to train with pre-trained models I got the Error below.

! python test.py --cfg_file ${CONFIG_FILE} --ckpt ${CKPT}

Traceback (most recent call last):
  File "test.py", line 13, in <module>
    from eval_utils import eval_utils
  File "/content/drive/My Drive/CT3D/CT3D-master/tools/eval_utils/eval_utils.py", line 8, in <module>
    from pcdet.models import load_data_to_gpu
  File "/content/drive/My Drive/CT3D/CT3D-master/pcdet/models/__init__.py", line 6, in <module>
    from .detectors import build_detector
  File "/content/drive/My Drive/CT3D/CT3D-master/pcdet/models/detectors/__init__.py", line 1, in <module>
    from .detector3d_template import Detector3DTemplate
  File "/content/drive/My Drive/CT3D/CT3D-master/pcdet/models/detectors/detector3d_template.py", line 7, in <module>
    from .. import backbones_2d, backbones_3d, dense_heads, roi_heads
  File "/content/drive/My Drive/CT3D/CT3D-master/pcdet/models/backbones_3d/__init__.py", line 2, in <module>
    from .spconv_backbone import VoxelBackBone8x, VoxelResBackBone8x
  File "/content/drive/My Drive/CT3D/CT3D-master/pcdet/models/backbones_3d/spconv_backbone.py", line 29, in <module>
    class SparseBasicBlock(spconv.SparseModule):
AttributeError: module 'spconv' has no attribute 'SparseModule'

The solution that I found from the Issues section of this project on Github is that the latest 'spconv version' install be Google Colab is not compatible with this project, that I have to install 'spconv version 1.2.1'. Please does anyone knows the command to install 'spconv version 1.2.1' into Google Colab notebook, thanks for any help.

What I have tried:

! python test.py --cfg_file ${CONFIG_FILE} --ckpt ${CKPT}


Traceback (most recent call last):
  File "test.py", line 13, in <module>
    from eval_utils import eval_utils
  File "/content/drive/My Drive/CT3D/CT3D-master/tools/eval_utils/eval_utils.py", line 8, in <module>
    from pcdet.models import load_data_to_gpu
  File "/content/drive/My Drive/CT3D/CT3D-master/pcdet/models/__init__.py", line 6, in <module>
    from .detectors import build_detector
  File "/content/drive/My Drive/CT3D/CT3D-master/pcdet/models/detectors/__init__.py", line 1, in <module>
    from .detector3d_template import Detector3DTemplate
  File "/content/drive/My Drive/CT3D/CT3D-master/pcdet/models/detectors/detector3d_template.py", line 7, in <module>
    from .. import backbones_2d, backbones_3d, dense_heads, roi_heads
  File "/content/drive/My Drive/CT3D/CT3D-master/pcdet/models/backbones_3d/__init__.py", line 2, in <module>
    from .spconv_backbone import VoxelBackBone8x, VoxelResBackBone8x
  File "/content/drive/My Drive/CT3D/CT3D-master/pcdet/models/backbones_3d/spconv_backbone.py", line 29, in <module>
    class SparseBasicBlock(spconv.SparseModule):
AttributeError: module 'spconv' has no attribute 'SparseModule'
Posted
Updated 9-Jan-22 15:11pm
v2
Comments
Richard Deeming 10-Jan-22 4:44am    
Why don't you reply to the issue where you found that information and ask for clarification?
UT7 10-Jan-22 5:48am    
@Richard Deeming, thanks for your response. I've done what was suggested in the issues post but it didn't work. All I need is the python command to install 'spconv version 1.2.1' into Google Colab notebook and the test would run. I've also done a Google search but it didn't give me any solution, thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900