Skip to content

aishell model convert to onnx model error #2573

@ZX183

Description

@ZX183

paddle2onnx convert deepspeech2_aishell pretrianed model error, is that supported ?
./tonnx.sh ../data/exp/deepspeech2_online/checkpoints/ avg_10.jit.pdmodel avg_10.pdparams ./avg_10.jit.onnxRequirement already satisfied: paddle2onnx in /usr/local/lib/python3.8/dist-packages (0.9.8)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Requirement already satisfied: onnx in /usr/local/lib/python3.8/dist-packages (1.11.0)
Requirement already satisfied: protobuf>=3.12.2 in /usr/local/lib/python3.8/dist-packages (from onnx) (3.19.5)
Requirement already satisfied: numpy>=1.16.6 in /usr/local/lib/python3.8/dist-packages (from onnx) (1.23.1)
Requirement already satisfied: typing-extensions>=3.6.2.1 in /usr/local/lib/python3.8/dist-packages (from onnx) (4.3.0)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
[Paddle2ONNX] Start to parse PaddlePaddle model...
[Paddle2ONNX] Model file path: ../data/exp/deepspeech2_online/checkpoints/avg_10.jit.pdmodel
[Paddle2ONNX] Paramters file path: ../data/exp/deepspeech2_online/checkpoints/avg_10.pdparams
[Paddle2ONNX] Start to parsing Paddle model...
[ERROR] Paddle2ONNX: Only support weight with lod_level = 0.
./tonnx.sh: line 25: 24306 Aborted (core dumped) paddle2onnx --model_dir $dir --model_filename $model --params_filename $param --save_file $output --enable_dev_version True --opset_version 11 --enable_onnx_checker True
-->

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions