-
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
paddlelite转换基于SLaNet训练的表格模型报错 #10549
Comments
您好~请问可以提供下模型和推理代码吗? |
好的,模型是 save_folder = './output' for line in result: font_path = 'doc/fonts/simfang.ttf' # PaddleOCR下提供字体包 |
hi~查看了Paddle3.0发版代码,涉及framework.proto改动不多,应该不会影响你这个模型的加载,很大可能是模型文件本身存在问题,在Paddle主框架issue里发现了和你类似的问题PaddlePaddle/Paddle#31741 。此外,也可以尝试回退用老版本paddle训练模型。 |
基于官方训练流程下的模型https://aistudio.baidu.com/modelsdetail/277?modelId=277
|
您好,调整paddle版本后有问题吗? |
在paddlelite==2.13rc0版本能转换官方表格模型SLANet,但是基于SLANet作为预训练模型训练出来的推理模型无法转换(基于PaddlePadlle==3.0Beta-gpu版本 cuda环境为12.4环境进行训练的模型)
报错信息如下:
C:\Users\seatrend.conda\envs\Paddle-Lite\python.exe D:\Project\python\Paddle-Lite\convert_model.py
[libprotobuf ERROR C:\xiaowen01\x86_windows_py_wheel\py37\Paddle-Lite\third-party\protobuf-host\src\google\protobuf\message_lite.cc:119] Can't parse message of type "paddle.framework.proto.ProgramDesc" because it is missing req
uired fields: blocks[1].ops[41].attrs[13].type, blocks[1].ops[44].attrs[13].type, blocks[1].ops[47].attrs[13].type
Loading topology data from ./model/input/SLANet/inference.pdmodel
[libprotobuf ERROR C:\xiaowen01\x86_windows_py_wheel\py37\Paddle-Lite\third-party\protobuf-host\src\google\protobuf\message_lite.cc:119] Can't parse message of type "paddle.framework.proto.ProgramDesc" because it is missing req
uired fields: blocks[1].ops[41].attrs[13].type, blocks[1].ops[44].attrs[13].type, blocks[1].ops[47].attrs[13].type
Loading params data from ./model/input/SLANet/inference.pdiparams
Model is successfully loaded!
[F 8/ 5 15: 6:54.293 ...e-Lite\lite/core/model/general/op_desc.h:123 paddle::lite::general::OpDesc::GetAttr] Check failed: pair.second->second == OpDataTypeTrait::AT: required type is INTS not match the true type
进程已结束,退出代码为 -1073740791 (0xC0000409)
The text was updated successfully, but these errors were encountered: