背景:
因為最近在看點云模型, 在自己的環(huán)境上部署該項目:
https://github.com/open-mmlab/OpenPCDet/tree/master
執(zhí)行命令:
這里執(zhí)行github項目給的demo.py文件, 命令格式如下:
python demo.py --cfg_file cfgs/kitti_models/pointpillar.yaml --ckpt xxx/pointpillar_7728.pth --data_path xxx/kitti_test_data/000000.bin
報錯信息:
Traceback (most recent call last):
File "demo.py", line 18, in <module>
from pcdet.datasets import DatasetTemplate
File "xxx/OpenPCDet/pcdet/datasets/__init__.py", line 6, in <module>
from pcdet.utils import common_utils
File "xxx/OpenPCDet/pcdet/utils/common_utils.py", line 7, in <module>
import SharedArray
ImportError: numpy.core.multiarray failed to import
解決方法:
使用如下命令進行安裝:
pip install SharedArray==3.1.0
該解決方法是在該github項目的issue里整理得到的, 感謝里面的幾位大佬!
鏈接及圖片如下:
https://github.com/open-mmlab/OpenPCDet/issues/867文章來源:http://www.zghlxwxcb.cn/news/detail-576301.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-576301.html
到了這里,關于[相遇 Bug] - ImportError: numpy.core.multiarray failed to import的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!