You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Hui Zhang
5a4e35b543
|
2 years ago | |
---|---|---|
.. | ||
local | 2 years ago | |
.gitignore | 2 years ago | |
README.md | 2 years ago | |
path.sh | 2 years ago | |
run.sh | 2 years ago | |
utils | 2 years ago |
README.md
DeepSpeech2 ONNX model
- convert deepspeech2 model to ONNX, using Paddle2ONNX.
- check paddleinference and onnxruntime output equal.
- optimize onnx model
- check paddleinference and optimized onnxruntime output equal.
Please make sure Paddle2ONNX and onnx-simplifier version is correct.
The example test with these packages installed:
paddle2onnx 0.9.8rc0 # develop af4354b4e9a61a93be6490640059a02a4499bc7a
paddleaudio 0.2.1
paddlefsl 1.1.0
paddlenlp 2.2.6
paddlepaddle-gpu 2.2.2
paddlespeech 0.0.0 # develop
paddlespeech-ctcdecoders 0.2.0
paddlespeech-feat 0.1.0
onnx 1.11.0
onnx-simplifier 0.0.0 # https://github.com/zh794390558/onnx-simplifier/tree/dyn_time_shape
onnxoptimizer 0.2.7
onnxruntime 1.11.0
Using
bash run.sh
For more details please see run.sh
.
Outputs
The optimized onnx model is exp/model.opt.onnx
.
To show the graph, please using local/netron.sh
.