关于默认模型版本问题
lalyeah opened this issue · 5 comments
lalyeah commented
想问一下,项目中原有的默认.nb模型(包括cls.nb det_db.nb rec_crnn.nb)是通过下述网址中https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.7/doc/doc_ch/models_list.md 哪一版模型训练出来的呢?
以及训练时的paddlepaddle版本和paddle lite的版本分别是什么呢?
在导出.nb文件时,命令行是什么以及--valid_targets选择了哪几项
非常感谢!
equationl commented
lycfr commented
你好,我现在你的demo上替换了这个链接里面的nb文件,然后运行时,app就崩溃了
2024-03-22 17:39:27.867 20120-20202 Paddle-Lite com.equationl.paddleocr4android.app A [F 3/22 17:39:27.867 ...20/lite/Paddle-Lite/lite/core/program.cc:356 RuntimeProgram] Check failed: (kernels.size() > 0): 0!>0
Error: This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite.
Error: This model is not supported, because kernel for 'io_copy' is not supported by Paddle-Lite.
如果我需要替换模型,有啥步骤或者操作可以指导一下
lycfr commented
@equationl 我的操作很简单,我直接下载了上面链接的nb模型文件,然后替换了paddleocr4android项目里面的nb文件而已,然后run一下,启动app就报错了
equationl commented
你看一下 README ,有两种部署方式,nb 模型是 paddle-lite 的模型,你首先需要确认部署方式是不是弄错了