-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
官方的yolov5n模型我自己用opt转换后使用报错 #10580
Comments
python tools/export_model.py -c configs/yolov5/yolov5_n_300e_coco.yml \
|
./opt_linux --valid_targets=arm,opencl --model_file=output_inference/yolov5_n_300e_coco/model.pdmodel --param_file=output_inference/yolov5_n_300e_coco/model.pdiparams --optimize_out=output_inference/yolov5_n_300e_coco/model
|
yolov5_n_300e_coco.zip |
可以尝试使用 release note 最新的 2.14-rc opt 工具和 Paddle Lite 库试试哈~ |
python tools/export_model.py -c configs/yolov5/yolov5_n_300e_coco.yml -o weights=output/yolov5_n_300e_coco/yolov5_n_300e_coco.pdparams --output_dir=output_inference |
现在能跑起来了,但是会时不时的卡几秒钟,卡顿的时候预测耗时达到好几秒 |
为使您的问题得到快速解决,在建立 Issue 前,请您先通过如下方式搜索是否有相似问题: 历史 issue, FAQ 文档, 官方文档
建立 issue 时,为快速解决问题,请您根据使用情况给出如下信息:
1)Paddle Lite 版本:请提供您的 Paddle Lite 版本号(如v2.10)或 CommitID
paddle lite:v2.11
paddlepaddle-gpu 2.4.2
2)Host 环境:请描述 Host 系统类型、OS 版本,如 Mac OS 10.14、Ubuntu 18.04
host centos
1)模型名称 yolov5n
2)模型链接
https://paddledet.bj.bcebos.com/models/yolov5_n_300e_coco.pdparams
-o weights=output/yolov5_n_300e_coco/yolov5_n_300e_coco.pdparams --output_dir=output_inference
--model_file=output_inference/yolov5_n_300e_coco/model.pdmodel
--param_file=output_inference/yolov5_n_300e_coco/model.pdiparams
--optimize_out=output_inference/yolov5_n_300e_coco/model
我是在这个demo里使用的,https://github.com/PaddlePaddle/Paddle-Lite-Demo/tree/develop/object_detection/android/app/cxx/yolov5n_detection_demo
我用的opencl版本的paddle Lite库https://github.com/PaddlePaddle/Paddle-Lite/releases/download/v2.11/inference_lite_lib.armv8.clang.with_exception.with_extra.with_cv.opencl.tar.gz
用的demo里自带的model.nb可以正常运行。
但是用上述方法自己转换和opt优化后的model.nb却无法在demo中运行起来,会报错 terminating with uncaught exception of type std::exception: std::exception
The text was updated successfully, but these errors were encountered: