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

aishell model convert to onnx model error #2573

Open
ZX183 opened this issue Oct 23, 2022 · 1 comment
Open

aishell model convert to onnx model error #2573

ZX183 opened this issue Oct 23, 2022 · 1 comment
Assignees
Labels

Comments

@ZX183
Copy link

ZX183 commented Oct 23, 2022

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
-->

@zh794390558
Copy link
Collaborator

在2onnx repo提个issue反馈下吧

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

3 participants