PaddlePaddle / Paddle-Lite

PaddlePaddle High Performance Deep Learning Inference Engine for Mobile and Edge (飞桨高性能深度学习端侧推理引擎)
https://www.paddlepaddle.org.cn/lite
Apache License 2.0
6.96k stars 1.61k forks source link

替换PaddleDetection转换的模型失败 #2799

Closed ralph0813 closed 9 months ago

ralph0813 commented 4 years ago

环境: IPhone8 IOS:12.3 xCode : Version 11.3.1 (11C504) paddle-lite release :2.2 model :paddledetection训练 转换的yolov3_mobilenet_v1 模型 model链接: https://jp.ralph0601.xyz/s/FpQrNmxit6xwpj5 paddle-lite demo

操作: 替换库文件:产出的lib目录替换Paddle-Lite-Demo/PaddleLite-ios-demo/ios-classification_demo/classification_demo/lib目录 替换头文件:产出的include目录下的文件替换Paddle-Lite-Demo/PaddleLite-ios-demo/ios-classification_demo/classification_demo/paddle_lite目录下的文件 替换model 修改 const char* class_names[] 未改动其他代码

运行后错误提示: Thread 1 Queue : com.apple.main-thread (serial) Thread 1: EXC_BAD_ACCESS (code=1, address=0x8)

希望demo能增加替换model的教程或示例

FrostML commented 4 years ago

您好,可以先尝试跑通demo再进行替换。再请问下在Android上是否也能复现类似的错误?后续将由相关的同事继续跟进这个问题 @hong19860320 @yiicy

ralph0813 commented 4 years ago

你好,安卓和ios都尝试过,demo可以正常跑通,但是换了模型就不行。