Skip to content

Failed to convert PPOCR detection model and recognition model to onnx. #1605

@NghiaKTHP

Description

@NghiaKTHP

This is my command. They does not work with paddle ocr.
paddle2onnx --model_dir ExportInferenceModel\recModel --model_filename inference.json --params_filename inference.pdiparams --save_file model.onnx

D:\Nghia\Python-Workspace\PaddleOCR\venv\Lib\site-packages\paddle\utils\cpp_extension\extension_utils.py:715: UserWarning: No ccache found. Please be aware that recompiling all source files may be required. You can download and install ccache from: https://github.com/ccache/ccache/blob/master/doc/INSTALL.md
warnings.warn(warning_message)
[Paddle2ONNX] Start to parse PaddlePaddle model...
[Paddle2ONNX] Model file path: ExportInferenceModel\recModel\inference.json
[Paddle2ONNX] Parameters file path: ExportInferenceModel\recModel\inference.pdiparams
[Paddle2ONNX] Start to parsing Paddle model...
[Paddle2ONNX] Failed to parse paddlepaddle model from read content.
[Paddle2ONNX] Failed to load program of PaddlePaddle model.
[Paddle2ONNX] Paddle model parsing failed.
[Paddle2ONNX] Paddle model convert failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions