happinesslz / LION

Official repository of ”LION: Linear Group RNN for 3D Object Detection in Point Clouds“
https://happinesslz.github.io/projects/LION/
Apache License 2.0
103 stars 9 forks source link

OSError: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory #7

Closed lrhlrhlrhlrhlrh closed 1 week ago

lrhlrhlrhlrhlrh commented 4 weeks ago

I met this problem,how to solve it? Traceback (most recent call last): File "train.py", line 7, in from test import repeat_eval_ckpt File "/home/LRH/3D_detection/LION-main/tools/test.py", line 14, in from eval_utils import eval_utils File "/home/LRH/3D_detection/LION-main/tools/eval_utils/eval_utils.py", line 8, in from pcdet.models import load_data_to_gpu File "/home/LRH/3D_detection/LION-main/tools/../pcdet/models/init.py", line 6, in from .detectors import build_detector File "/home/LRH/3D_detection/LION-main/tools/../pcdet/models/detectors/init.py", line 1, in from .detector3d_template import Detector3DTemplate File "/home/LRH/3D_detection/LION-main/tools/../pcdet/models/detectors/detector3d_template.py", line 8, in from .. import backbones_2d, backbones_3d, dense_heads, roi_heads File "/home/LRH/3D_detection/LION-main/tools/../pcdet/models/backbones_3d/init.py", line 12, in from .lion_backbone_one_stride import LION3DBackboneOneStride, LION3DBackboneOneStride_Sparse File "/home/LRH/3D_detection/LION-main/tools/../pcdet/models/backbones_3d/lion_backbone_one_stride.py", line 7, in import torch_scatter File "/home/anaconda3/envs/lion/lib/python3.8/site-packages/torch_scatter/init.py", line 16, in torch.ops.load_library(spec.origin) File "/home/LRH/anaconda3/envs/lion/lib/python3.8/site-packages/torch/_ops.py", line 643, in load_library ctypes.CDLL(path) File "/home/LRH/anaconda3/envs/lion/lib/python3.8/ctypes/init.py", line 373, in init self._handle = _dlopen(self._name, mode) OSError: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory Here are some of my environments: cuda11.8 torch2.1.0+cu118 spconv-cu116

lrhlrhlrhlrhlrh commented 4 weeks ago

Error caused when I run 'python train.py --cfg_file cfgs/kitti_models/second_with_lion_mamba_64dim.yaml'.

happinesslz commented 4 weeks ago

@lrhlrhlrhlrhlrh Hi, I think it is caused by the mismatched version. Please make sure these versions of CUDA/CUDNN/Pytorch/torch_scatter are consistent.

gaodiqaq commented 2 weeks ago

@lrhlrhlrhlrhlrh I had the same problem as you, did you solve it?

gaodiqaq commented 2 weeks ago

I've solved it by changing the version of torch-scatter