Skip to content

Can It convert PP-Chart2Table and PP-FormulaNet_plus-S #1639

@snowfluke

Description

@snowfluke

I'm having issue converting PP-Chart2Table and PP-FormulaNet_plus-S

[/usr/local/lib/python3.12/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py](https://localhost:8080/#) in _create_inference_session(self, providers, provider_options, disabled_optimizers)
    597 
    598         if self._model_path:
--> 599             sess = C.InferenceSession(session_options, self._model_path, True, self._read_config_from_model)
    600         else:
    601             sess = C.InferenceSession(session_options, self._model_bytes, False, self._read_config_from_model)

InvalidGraph: [ONNXRuntimeError] : 10 : INVALID_GRAPH : Load model from PP-FormulaNet_plus-S.onnx failed:This is an invalid model. In Node, ("Loop.0", Loop, "", -1) : ("","p2o.pd_op.logical_and.0.0": tensor(bool),"p2o.pd_op.full.26.0": tensor(bool),"p2o.pd_op.arange.0.0": tensor(int64),"Identity.149": tensor(int64),"p2o.pd_op.full.17.0": tensor(float),"Identity.149": tensor(int64),"Identity.155": tensor(float),"Identity.155": tensor(float),"Identity.155": tensor(float),"Identity.155": tensor(float),"Identity.155": tensor(float),"Identity.155": tensor(float),"Identity.155": tensor(float),"Identity.155": tensor(float),"p2o.pd_op.full_with_tensor.1.0": tensor(int64),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.30.0": tensor(int64),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.17.0": tensor(float),"p2o.pd_op.full.30.0": tensor(int64),) -> ("p2o.pd_op.while.0.0": tensor(bool),"p2o.pd_op.while.0.1": tensor(int64),"p2o.pd_op.while.0.2": tensor(int64),"p2o.pd_op.while.0.3": tensor(float),"fetch_name_0": tensor(int64),"p2o.pd_op.while.0.5": tensor(float),"p2o.pd_op.while.0.6": tensor(float),"p...
name: Identity.205 OpType: Identity
 is not output of any previous nodes.

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