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

版面分析模型和表格识别模型怎样转onnx? #1146

Closed
nissansz opened this issue Sep 4, 2023 · 3 comments
Closed

版面分析模型和表格识别模型怎样转onnx? #1146

nissansz opened this issue Sep 4, 2023 · 3 comments
Labels

Comments

@nissansz
Copy link

nissansz commented Sep 4, 2023

版面分析模型和表格识别模型怎样转onnx?

@Yamcanda
Copy link

  1. https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.7/ppstructure/docs/models_list.md 下载推理模型
  2. 安装
    pip install paddle2onnx
  3. 用 paddle2onnx 转换:
    paddle2onnx --model_dir /home/yamcanda/ser_vi_layoutxlm_xfund_infer --model_filename inference.pdmodel --params_filename inference.pdiparams --save_file inference.onnx --enable_dev_version True --opset_version 16 --enable_onnx_checker True

注意:re_vi_layoutxlm_xfund_infer 没转成功,报错:LodTensorArray is not supported

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 16, 2025
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

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

No branches or pull requests

2 participants