⚡️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.
环境
问题日志及出现问题的操作流程
问题描述:【模型跑不通】
已经按照FD官方文档跑通 PP-YOLOE 量化模型 C++ 部署示例。这个Demo的Arm cpu和NPU都可以跑通。
然后我换上了自己训练的PPYOLOE+_s模型,infer_cfg.yml文件也替换了。此时可以在 Arm Cpu 上跑通,精度也OK。
然后,按照文档的方法,打开NPU推理方式:
编译执行,此时已经有报错。 记录Log信息,找到其中的Subgraph operators之后的内容,单独存到 subgrapph.txt中,用新的 txt文件替换原有的subgraph.txt文件。
然后打开读取异构计算的txt文件的语句:
再次执行,仍然报错,且报错内容相同。
以上测试流程,不管是用PTQ还是QAT方式压缩的模型,都是一样的现象,一样的报错。
日志信息,见附件:log_ppyoloe_plus.txt
使用的模型包括subgraph.txt,在zip附件中:ppyoloe_plus_qat_model_atai.zip
测试图片,见附件:test03.zip
运行程序的脚本为:
export LD_LIBRARY_PATH=/home/rpdzkj/Downloads/FastDeploy-develop/examples/vision/detection/paddledetection/a311d/cpp/build/install/lib/;
./build/install/infer_demo ./build/install/models/ppyoloe_noshare_qat ./build/install/images/000000014439.jpg
./build/infer_demo ./models/ppyoloe_plus_ptq_model_new ./images/test03.jpg
./build/infer_demo ./models/ppyoloe_plus_qat_model_new ./images/test03.jpg