VoxelNeXt
VoxelNeXt copied to clipboard
AttributeError: module 'spconv' has no attribute 'version'
Hi Yukang,
I was trying to run the evaluation script and am getting the following error.
--cfg_file /mnt/tools/cfgs/nuscenes_models/cbgs_voxel0075_voxelnext.yaml --ckpt /mnt/VoxelNeXt/voxelnext_nuscenes_kernel1.pth
+ NGPUS=2
+ PY_ARGS='--cfg_file /mnt/tools/cfgs/nuscenes_models/cbgs_voxel0075_voxelnext.yaml --ckpt /mnt/VoxelNeXt/voxelnext_nuscenes_kernel1.pth'
+ python -m torch.distributed.launch --nproc_per_node=2 test.py --launcher pytorch --cfg_file /mnt/tools/cfgs/nuscenes_models/cbgs_voxel0075_voxelnext.yaml --ckpt /mnt/VoxelNeXt/voxelnext_nuscenes_kernel1.pth
*****************************************
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
*****************************************
Traceback (most recent call last):
File "test.py", line 14, in <module>
from eval_utils import eval_utils
File "/mnt/VoxelNeXt/tools/eval_utils/eval_utils.py", line 8, in <module>
from pcdet.models import load_data_to_gpu
File "../pcdet/models/__init__.py", line 6, in <module>
from .detectors import build_detector
File "../pcdet/models/detectors/__init__.py", line 1, in <module>
from .detector3d_template import Detector3DTemplate
File "../pcdet/models/detectors/detector3d_template.py", line 7, in <module>
from ...utils.spconv_utils import find_all_spconv_keys
File "../pcdet/utils/spconv_utils.py", line 4, in <module>
if float(spconv.__version__[2:]) >= 2.2:
AttributeError: module 'spconv' has no attribute '__version__'
Traceback (most recent call last):
File "test.py", line 14, in <module>
from eval_utils import eval_utils
File "/mnt/VoxelNeXt/tools/eval_utils/eval_utils.py", line 8, in <module>
from pcdet.models import load_data_to_gpu
File "../pcdet/models/__init__.py", line 6, in <module>
from .detectors import build_detector
File "../pcdet/models/detectors/__init__.py", line 1, in <module>
from .detector3d_template import Detector3DTemplate
File "../pcdet/models/detectors/detector3d_template.py", line 7, in <module>
from ...utils.spconv_utils import find_all_spconv_keys
File "../pcdet/utils/spconv_utils.py", line 4, in <module>
if float(spconv.__version__[2:]) >= 2.2:
AttributeError: module 'spconv' has no attribute '__version__'
Traceback (most recent call last):
File "/opt/conda/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/opt/conda/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/conda/lib/python3.7/site-packages/torch/distributed/launch.py", line 261, in <module>
main()
File "/opt/conda/lib/python3.7/site-packages/torch/distributed/launch.py", line 257, in main
cmd=cmd)
subprocess.CalledProcessError: Command '['/opt/conda/bin/python', '-u', 'test.py', '--local_rank=1', '--launcher', 'pytorch', '--cfg_file', '/mnt/tools/cfgs/nuscenes_models/cbgs_voxel0075_voxelnext.yaml', '--ckpt', '/mnt/VoxelNeXt/voxelnext_nuscenes_kernel1.pth']' returned non-zero exit status 1.
I am using the docker image that you provide. docker pull djiajun1206/pcdet:pytorch1.6 When I run nvcc --version in the docker image, I get CUDA version 10.1.
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243
So, with CUDA 10.1 and pytorch 1.6, I am unsure which version of spconv to install
Your help will be much appreciated.
Thank you Naren