项目:
https://github.com/open-mmlab/mmdetection3d
问题复现:
- 步骤
运行python tools/test.py projects/TR3D/configs/tr3d_1xb16_scannet-3d-18class.py checkpoints/tr3d_1xb16_sunrgbd-3d-10class.pth
后报错:
File "/home/kyle/Programs/AI/mmdetection3d/mmdet3d/models/backbones/mink_resnet.py", line 48, in __init__'Please follow `get_started.md` to install MinkowskiEngine.`')
ImportError: Please follow `get_started.md` to install MinkowskiEngine.`
后根据文档转nvidia 个it安装MinkowskiEngine报错
- 报错内容:
/ld: cannot find -lopenblas: No such file or directorycollect2: error: ld returned 1 exit statuserror: command '/usr/bin/g++' failed with exit code 1error: subprocess-exited-with-error× Running setup.py install for MinkowskiEngine did not run successfully.
解决方案:
忘记安装libopenblas,执行命令
sudo apt install build-essential python3-dev libopenblas-dev -y
然后安装特定版本blas:
pip install -U MinkowskiEngine --install-option="--blas=openblas" -v --no-deps
pip install -U git+https://github.com/NVIDIA/MinkowskiEngine --no-deps
解决效果
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting git+https://github.com/NVIDIA/MinkowskiEngineCloning https://github.com/NVIDIA/MinkowskiEngine to /tmp/pip-req-build-d6i0jn4pRunning command git clone --filter=blob:none --quiet https://github.com/NVIDIA/MinkowskiEngine /tmp/pip-req-build-d6i0jn4pResolved https://github.com/NVIDIA/MinkowskiEngine to commit 02fc608bea4c0549b0a7b00ca1bf15dee4a0b228Preparing metadata (setup.py) ... done