Paddle-Lite-Demo基于 pp_picodet 模型的目标检测, 替换模型之后报错.
收藏
【问题描述】
在成功运行demo(https://github.com/PaddlePaddle/Paddle-Lite-Demo/tree/develop/object_detection/android/app/cxx/picodet_detection_demo)后, 替换公司的模型后运行报错.
替换模型删除了原来其他的模型,并且把labels下两个标签文件全部替换为模型对应的需要识别的物体标签,最后运行报如下错误
2022-06-16 14:56:44.799 28665-28704/com.yuedong.sportexam.paddle A/Paddle-Lite: [F 6/16 14:56:44.799 ...island/Paddle-Lite/lite/api/light_api.cc:81 GetInput] Check failed: input_names_.size() > offset: The network has 1 inputs, the offset should be less than this.
【尝试过的方案】
有在issues上找到一个相关回答:https://github.com/PaddlePaddle/Paddle-Lite-Demo/issues/220
但是咨询算法工程师那边他只说了pico是两输入.
【主要目标】
1. input_names_.size() > offset: 这种报错是否确定就是因为模型为单输入的缘故
2.如果是的话可以怎么修改 Detector::Preprocess 函数.
0
收藏
请登录后评论
暂时确定了这是个单输入的模型。最顶上的0代表单输入。 现在再看看怎么处理 Detector::Preprocess 为单输入.