equationl/paddleocr4android

关于默认模型版本问题

lalyeah opened this issue · 5 comments

想问一下,项目中原有的默认.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选择了哪几项
非常感谢!

paddle lite 的 demo 中自带的模型是:

image

paddle lite 版本是 2.10 ,其他参数需要你看一下官方仓库的说明,因为这个项目只是对官方 demo 的简单封装,没有更改任何参数配置或自训练模型。

你好,我现在你的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.
image
如果我需要替换模型,有啥步骤或者操作可以指导一下

@lycfr 用的是什么部署?nb 模型只能用 paddle-lite 部署,另外这个报错是因为缺少 opencl

@equationl 我的操作很简单,我直接下载了上面链接的nb模型文件,然后替换了paddleocr4android项目里面的nb文件而已,然后run一下,启动app就报错了

你看一下 README ,有两种部署方式,nb 模型是 paddle-lite 的模型,你首先需要确认部署方式是不是弄错了