|
【人工智能】
NPU python demo 无法运行, 环境安装好了但是报错,求指教!
发表于 2021-3-4 19:50:31
浏览:10461
|
回复:2
打印
只看该作者
[复制链接]
楼主
环境:
```
UBUNTU:1804
gast 0.4.0
grpcio 1.35.0
h5py 2.8.0
idna 2.6
importlib-metadata 3.7.0
itsdangerous 1.1.0
Jinja2 2.11.3
keyring 10.6.0
keyrings.alt 3.0
kiwisolver 1.3.1
lmdb 0.93
Markdown 3.3.4
MarkupSafe 1.1.1
matplotlib 3.3.4
netifaces 0.10.4
networkx 1.11
numpy 1.16.3
onnx 1.4.1
onnx-tf 1.2.1
onnxruntime 1.7.0
opencv-python 4.5.1.48
Pillow 8.1.0
pip 21.0.1
ply 3.11
protobuf 3.11.2
psutil 5.6.2
pycrypto 2.6.1
pygobject 3.26.1
pyparsing 2.4.7
python-apt 1.6.5+ubuntu0.5
python-dateutil 2.8.1
pyxdg 0.25
PyYAML 3.12
requests 2.22.0
rknn-toolkit 1.3.0
ruamel.yaml 0.15.81
scipy 1.3.0
SecretStorage 2.3.1
setuptools 39.0.1
six 1.11.0
tensorboard 1.10.0
tensorflow 1.10.1
termcolor 1.1.0
torch 1.4.0a0+72e1771
torchvision 0.5.0a0+85b8fbf
typing 3.7.4.3
typing-extensions 3.7.4.3
unattended-upgrades 0.1
urllib3 1.25.11
Werkzeug 1.0.1
wheel 0.30.0
```
运行 rknn/demo/tensorflow/ssd_mobilenet_v1 test.py报错:
```
--> Config model
done
--> Loading model
Traceback (most recent call last):
File "app.py", line 73, in <module>
input_size_list=[[INPUT_SIZE, INPUT_SIZE, 3]])
File "/usr/local/lib/python3.6/dist-packages/rknn/api/rknn.py", line 65, in load_tensorflow
std_values=std_values)
File "rknn/api/rknn_base.py", line 156, in rknn.api.rknn_base.RKNNBase.load_tensorflow
File "rknn/base/acuitylib/converter/convert_tf.py", line 10, in init rknn.base.acuitylib.converter.convert_tf
File "rknn/base/acuitylib/converter/tensorflowloader.py", line 11, in init rknn.base.acuitylib.converter.tensorflowloader
File "rknn/base/acuitylib/converter/tensor_model.py", line 4, in init rknn.base.acuitylib.converter.tensor_model
File "rknn/base/acuitylib/converter/onnx_util.py", line 1, in init rknn.base.acuitylib.converter.onnx_util
File "/usr/local/lib/python3.6/dist-packages/onnx/__init__.py", line 14, in <module>
import onnx.helper # noqa
File "/usr/local/lib/python3.6/dist-packages/onnx/helper.py", line 13, in <module>
import onnx.defs as defs
File "/usr/local/lib/python3.6/dist-packages/onnx/defs/__init__.py", line 7, in <module>
import onnx.onnx_cpp2py_export.defs as C
ImportError: libprotobuf.so.15: cannot open shared object file: No such file or directory
``` |
|