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

怎么用ch_ppocr_server_v2.0的模型进行推理? #13

Open
eyu11 opened this issue Jul 17, 2024 · 2 comments
Open

怎么用ch_ppocr_server_v2.0的模型进行推理? #13

eyu11 opened this issue Jul 17, 2024 · 2 comments

Comments

@eyu11
Copy link

eyu11 commented Jul 17, 2024

如题,需要修改哪一些内容?
直接修改utils的初始化参数--rec_model_dir,会报如下的错:
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Got invalid dimensions for input: x for the following indices
index: 2 Got: 48 Expected: 32
Please fix either the inputs or the model.

用V4版本会出错漏行的情况,如下图所示:
image

@jingsongliujing
Copy link
Owner

v2模型请切换分支到master,master分支就是v2版本的推理,实际上就是修改一下输入模型的图片大小参数
image

@eyu11
Copy link
Author

eyu11 commented Jul 17, 2024

收到,谢谢

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

2 participants