試圖運行此projectAttributeError的:模塊 'mxnet' 有沒有屬性「木衛一
,並得到了打字時的錯誤:
python demo.py --gpu 0
我的終端上
錯誤:
Using mxnet as:
<module 'mxnet' (namespace)>
Warning: using pre-installed version of mxnet may cause unexpected error...
(export MXNET_EXAMPLE_SSD_DISABLE_PRE_INSTALLED=1) to prevent loading pre-installed mxnet.
Traceback (most recent call last):
File "demo.py", line 6, in <module>
from detect.detector import Detector
File "/home/ubuntu-linux/mxnet-ssd/detect/detector.py", line 6, in <module>
from dataset.iterator import DetIter
File "/home/ubuntu-linux/mxnet-ssd/dataset/iterator.py", line 6, in <module>
class DetRecordIter(mx.io.DataIter):
AttributeError: module 'mxnet' has no attribute 'io'
幫助
運行(GIT克隆--recursive https://github.com/zhreshold/mxnet-ssd.git)後
舊的錯誤消失了,但得到這個新的錯誤:
Traceback (most recent call last):
File "demo.py", line 2, in <module>
import tools.find_mxnet
File "/home/ubuntu-linux/mxnet-ssd/tools/find_mxnet.py", line 15, in <module>
import mxnet as mx
File "/home/ubuntu-linux/mxnet-ssd/tools/../mxnet/python/mxnet/__init__.py", line 7, in <module>
from .base import MXNetError
File "/home/ubuntu-linux/mxnet-ssd/tools/../mxnet/python/mxnet/base.py", line 52, in <module>
_LIB = _load_lib()
File "/home/ubuntu-linux/mxnet-ssd/tools/../mxnet/python/mxnet/base.py", line 43, in _load_lib
lib_path = libinfo.find_lib_path()
File "/home/ubuntu-linux/mxnet-ssd/tools/../mxnet/python/mxnet/libinfo.py", line 42, in find_lib_path
'List of candidates:\n' + str('\n'.join(dll_path)))
RuntimeError: Cannot find the files.
List of candidates:
/home/ubuntu-linux/mxnet-ssd/mxnet/python/mxnet/libmxnet.so
/home/ubuntu-linux/mxnet-ssd/mxnet/python/mxnet/../../lib/libmxnet.so
/home/ubuntu-linux/mxnet-ssd/mxnet/python/mxnet/../../build/Release/libmxnet.so
/usr/local/cuda-8.0/lib64/libmxnet.so
libmxnet.so
../../../libmxnet.so
您可能有一個與mxnet-ssd不兼容的'mxnet'版本。升級'mxnet'。 – phd
升級它,它有點工作,但得到了另一個錯誤 –
'追溯(最近呼叫最後): 「/ home /導入錯誤 導入錯誤」 –