-
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
Check failed: (idx < static_cast<int32_t>(BlocksSize())): 0!<0 idx >= blocks.size() #10569
Comments
看样子是模型加载和解析过程中的问题,通过BlocksSize()[https://github.com/PaddlePaddle/Paddle-Lite/blob/9b53b4a39722bbf29bdf9b799c1ab9e28cd93e4d/lite/core/model/general/program_desc.cc#L51]获取的结果为0,这似乎不太符合预期,请问你.bin和.param文件是从哪里导出的 |
这些文件是从一个安卓程序里的PaddleOCR库导出来的 |
似乎是模型文件的问题,paddle模型文件应是.pdmodel格式, 而不是.bin格式,建议再确认一下模型正确性,https://www.paddlepaddle.org.cn/lite/develop/user_guides/model_visualization.html |
您可以在上面的模型信息里的模型链接里下载我所导出的模型文件,可以请您帮忙查看一下是什么类型的模型么? |
你的模型看起来是经过某种处理之后的格式,我不知道你是怎么处理的,理论上PaddleOCR本身导出的模型应该是pdmodel和pdiparams格式的文件,所以应该是PaddleOCR处理的结果不对,建议你先自查一下模型处理过程,或者在PaddleOCR官方repo寻找帮助,https://github.com/PaddlePaddle/PaddleOCR |
您好,如果没有进一步的问题,我先把这个issue关闭了。如果还有问题,您随时可以 Reopen。 |
1)Paddle Lite 版本:v2.12
2)Host 环境:Windows10 + Anaconda3
1)模型名称 PaddleOCR
2)模型链接 PaddleOCR.zip
The text was updated successfully, but these errors were encountered: