Comments (4)
需要通过-L将lib路径加进来
建议参考example目录下的示例使用cmake
from fastdeploy.
参考了:FastDeploy/examples/vision/classification/paddleclas/cpp/README.md 这里的例子,同样也遇到了问题:1. https://bj.bcebos.com/paddlehub/fastdeploy/libs/0.2.0/fastdeploy-linux-x64-gpu-0.2.0.tgz 地址失效,换成https://bj.bcebos.com/fastdeploy/release/cpp/fastdeploy-linux-x64-0.2.0.tgz 可以解决,2.跑 ./infer_demo ResNet50_vd_infer ILSVRC2012_val_00000010.jpeg 0 的时候 会报错./infer_demo: error while loading shared libraries: libpaddle2onnx.so.1.0.0rc3: cannot open shared object file: No such file or directory
from fastdeploy.
@xwang365 Hi,谢谢你的反馈,这页文档地址先前确实写错了,已修改。
Linux下编译生成二进制后,如果执行出现上面的问题,属于库没找到的问题,你可以试下把库加到LD_LIBRARY_PATH中执行
例如
export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/paddle2onnx/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/onnxruntime/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/opencv/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/paddle_inference/paddle/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/paddle_inference/third_party/install/mklml/lib:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH=/fastdeploy-linux-x64-0.2.0/third_libs/install/paddle_inference/third_party/install/mkldnn/lib:${LD_LIBRARY_PATH}
通过如上方式,将FastDeploy中的库路径添加好,即可执行。
from fastdeploy.
此ISSUE由于一年未更新,将会关闭处理,如有需要,可再次更新打开。
from fastdeploy.
Related Issues (20)
- 使用瑞芯微RK3588部署PaddleOCRV3模型,识别模型只能识别到第一个字符,后面的字符都没有识别 HOT 1
- atlas 300i pro跑yolov5.onnx模型推理出错 HOT 2
- fastdeploy编译问题:1.用预编译的提示RuntimeOption不存在。2.自己编译,编译成功了安装失败。提示不支持当前平台 #11905 HOT 2
- vision::OCRResult missing necessary fields `table_boxes` and `table_structure` HOT 1
- structurev2_ser_vi_layoutxlm python 什么时候提供?
- fastdeploy_model.h(140)::Clone doesn't support Cone() now. HOT 1
- python 3.10 fastdeploy-gpu-python C++ Traceback HOT 1
- ser_vi_layoutxlm/vqa_utils.py 中代码是否有必要?默认值为-100 HOT 2
- Linux aarch64预编译版无法下载 HOT 1
- module 'fastdeploy' has no attribute 'RuntimeOption' HOT 2
- CAPI 重OneDimDetectionResult 调用释放内存释方法后崩溃 HOT 3
- c#编译fastdeploy,在nuget restore时出现报错:无法计算表达式“[MSBuild]::NormalizePath('', '')”。参数“path”的长度不能为零。 HOT 2
- 特定图像会导致OCR例子内存报错core HOT 4
- FastDeploy 是否有适配 paddleocr box_type='poly' 的计划 HOT 1
- c#部署fastdeploy时fastdeploy.vision.segmentation.PaddleSegModel model读取config文件时报错 Unexcepted preprocess operator: LoadImages. HOT 5
- pyinstaller打包python项目时,遇到fastdeploy总是提示dll加载不了的问题,但是原始依赖包中就没有fastdeploy_main.dll文件 HOT 2
- 2024了,希望支持3.11 HOT 2
- FastDeploy预计啥时候支持PP OCR V4的模型? HOT 1
- YOLO8Cls 支持不
- yolo系列多batch推理有误 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastdeploy.