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

版面分析layout模型转为onnx后出现不可用,其他模型都正常 #1477

Open
shallow10 opened this issue Jan 16, 2025 · 1 comment

Comments

@shallow10
Copy link

请将下面信息填写完整,便于我们快速解决问题,谢谢!

问题描述
请在此处详细的描述报错信息
Traceback (most recent call last):
File "E:\program\PaddleOCRFastAPI\routers\ocr.py", line 32, in
table_engine = PPStructure(
File "E:\Anaconda\envs\paddle_env\lib\site-packages\paddleocr\paddleocr.py", line 836, in init
super().init(params)
File "E:\program\PaddleOCRFastAPI\ppstructure\predict_system.py", line 67, in init
self.layout_predictor = LayoutPredictor(args)
File "E:\program\PaddleOCRFastAPI\ppstructure\layout\predict_layout.py", line 68, in init
utility.create_predictor(args, 'layout', logger)
File "E:\program\PaddleOCRFastAPI\tools\infer\utility.py", line 183, in create_predictor
sess = ort.InferenceSession(
File "E:\Anaconda\envs\paddle_env\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 335, in init
self._create_inference_session(providers, provider_options, disabled_optimizers)
File "E:\Anaconda\envs\paddle_env\lib\site-packages\onnxruntime\capi\onnxruntime_inference_collection.py", line 370, in _create_inference_session
sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Load model from E:\program\PaddleOCRFastAPI\model\layout failed:system error number 13

更多信息 :

  • 用于部署的推理引擎:onnxruntime:1.11
  • 为什么需要转换为ONNX格式:需要部署到生产环境
  • Paddle2ONNX版本:1.3.1
  • 你的联系方式(Email/Wechat/Phone):

报错截图

Image

Image

Image

其他信息
指定了绝对路径的话会出现

Image

@shallow10
Copy link
Author

有人知道怎么解决吗

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

1 participant