PaddlePaddle / FastDeploy

⚡️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.
https://www.paddlepaddle.org.cn/fastdeploy
Apache License 2.0
2.81k stars 441 forks source link

自训练PPYOLOE模型转RKNN格式模型过程中遇到的问题? #1792

Open MrMzl opened 1 year ago

MrMzl commented 1 year ago

环境

问题日志及出现问题的操作流程

Zheng-Bicheng commented 1 year ago

这个可能是RK工具链的问题,后期PPYOLOE我们会更新一个新版本的哈

MrMzl commented 1 year ago

这个可能是RK工具链的问题,后期PPYOLOE我们会更新一个新版本的哈

好的,感谢回复。这个新版本大致会在什么时候?

Zheng-Bicheng commented 1 year ago

这个取决于RK啥时候更新他们的仓

2023年4月11日 09:00,MrMzl @.***> 写道:

这个可能是RK工具链的问题,后期PPYOLOE我们会更新一个新版本的哈

好的,感谢回复。这个新版本大致会在什么时候?

— Reply to this email directly, view it on GitHubhttps://github.com/PaddlePaddle/FastDeploy/issues/1792#issuecomment-1502534967, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN5I5QTE7O2NC5W364D7OD3XASULRANCNFSM6AAAAAAWY4GIXI. You are receiving this because you were assigned.Message ID: @.***>

TsingWei commented 1 year ago

我发现PPYOLOE转ONNX后是有俩输入的,分别是imagescale, 用rknn的转换工具该怎么处理这个情况呢?

haozizhuimao commented 5 months ago

我使用的网址上的例子进行模型转换也报了相同的错误https://github.com/PaddlePaddle/PaddleSeg/blob/release/2.9/deploy/fastdeploy/semantic_segmentation/rockchip/rknpu2/pp_humanseg.md

【FastDeploy版本】: 说明具体的版本,如fastdeploy-develop 【系统平台】: Linux x64(Ubuntu 22.04) 【模型转换环境】: rknn-toolkit2 version: 1.6.0+81f21f4d 【转换环境详细包】: requirements.txt

错误信息如下 :

{'mean': [[127.5, 127.5, 127.5]], 'std': [[127.5, 127.5, 127.5]], 'model_path': './Portrait_PP_HumanSegV2_Lite_256x144_infer/Portrait_PP_HumanSegV2_Lite_256x144_infer.onnx', 'outputs_nodes': None, 'do_quantization': True, 'dataset': './Portrait_PP_HumanSegV2_Lite_256x144_infer/dataset.txt', 'output_folder': './Portrait_PP_HumanSegV2_Lite_256x144_infer'} W init: rknn-toolkit2 version: 1.6.0+81f21f4d W load_onnx: It is recommended onnx opset 19, but your onnx model opset is 11! Loading : 100%|███████████████████████████████████████████████| 466/466 [00:00<00:00, 109781.27it/s] E build: Dataset file ./Portrait_PP_HumanSegV2_Lite_256x144_infer/dataset.txt not found! Traceback (most recent call last): File "/home/yuehao/code/FastDeploy-develop/tools/rknpu2/export.py", line 58, in assert ret == 0, "Build model failed!" AssertionError: Build model failed!