Skip to content
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

关于默认模型版本问题 #35

Open
lalyeah opened this issue Jan 2, 2024 · 5 comments
Open

关于默认模型版本问题 #35

lalyeah opened this issue Jan 2, 2024 · 5 comments

Comments

@lalyeah
Copy link

lalyeah commented Jan 2, 2024

想问一下,项目中原有的默认.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
Copy link
Owner

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

image

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

@lycfr
Copy link

lycfr commented Mar 22, 2024

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

@equationl
Copy link
Owner

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

@lycfr
Copy link

lycfr commented Mar 25, 2024

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

@equationl
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants