1. 前置条件:
编译完Fastdeploy SDK & make install =>? /opt/fd_sdk
2. 进入Examples相关目录,然后执行:
mkdir build & cd build
cmake .. -DFASTDEPLOY_INSTALL_DIR=/opt/fd_sdk/
即可生成:
Infer_demo文件
3. 执行测试:
wget https://bj.bcebos.com/paddlehub/fastdeploy/yolov5s.onnx
wget https://gitee.com/paddlepaddle/PaddleDetection/raw/release/2.4/demo/000000014439.jpg
./infer_demo yolov5s.onnx 000000014439.jpg 0