PaddlePaddle / FastDeploy

⚡️An Easy-to-use and Fast Deep Learning Model Deployment Toolkit for ☁️Cloud 📱Mobile and 📹Edge. Including Image, Video, Text and Audio 20+ main stream scenarios and 150+ SOTA models with end-to-end optimization, multi-platform and multi-framework support.
https://www.paddlepaddle.org.cn/fastdeploy
Apache License 2.0
2.98k stars 464 forks source link

RK3588 python RuntimeError: FastDeploy initalized failed! #1676

Closed jiangq195 closed 7 months ago

jiangq195 commented 1 year ago

cd FastDeploy/examples/vision/segmentation/paddleseg/semantic_segmentation/rockchip/rknpu2/python

python3 infer.py --model_file ./Portrait_PP_HumanSegV2_Lite_256x144_infer/Portrait_PP_HumanSegV2_Lite_256x144_infer_rk3588.rknn --config_file ./Portrait_PP_HumanSegV2_Lite_256x144_infer/deploy.yaml --image images/portrait_heng.jpg Traceback (most recent call last): File "/home/firefly/.local/lib/python3.9/site-packages/fastdeploy/c_lib_wrap.py", line 164, in from .libs.fastdeploy_main import * ImportError: /home/firefly/.local/lib/python3.9/site-packages/fastdeploy/libs/fastdeploy_main.cpython-39-aarch64-linux-gnu.so: undefined symbol: _ZTIN10fastdeploy6vision14classification6ResNetE

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/home/firefly/projects/FastDeploy/examples/vision/segmentation/paddleseg/semantic_segmentation/rockchip/rknpu2/python/infer.py", line 14, in import fastdeploy as fd File "/home/firefly/.local/lib/python3.9/site-packages/fastdeploy/init.py", line 53, in from .c_lib_wrap import ( File "/home/firefly/.local/lib/python3.9/site-packages/fastdeploy/c_lib_wrap.py", line 166, in raise RuntimeError("FastDeploy initalized failed!") RuntimeError: FastDeploy initalized failed!

DefTruth commented 1 year ago

请问你的编译命令是怎样的?

Zheng-Bicheng commented 1 year ago

你是在板端编译的嘛?看上去是你直接pip install fastdeploy了?