From 71abe27d0e6b7cfcfbef8c36cebb1d8a34b6efdd Mon Sep 17 00:00:00 2001 From: jinzr Date: Wed, 13 Dec 2023 10:20:38 +0800 Subject: [PATCH] docs updated --- .../ASR/zipformer/export-onnx-streaming-ctc.py | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/egs/librispeech/ASR/zipformer/export-onnx-streaming-ctc.py b/egs/librispeech/ASR/zipformer/export-onnx-streaming-ctc.py index 345a64ff2..dac89b5f3 100755 --- a/egs/librispeech/ASR/zipformer/export-onnx-streaming-ctc.py +++ b/egs/librispeech/ASR/zipformer/export-onnx-streaming-ctc.py @@ -6,24 +6,8 @@ """ This script exports a transducer model from PyTorch to ONNX. -We use the pre-trained model from -https://huggingface.co/Zengwei/icefall-asr-librispeech-streaming-zipformer-2023-05-17 -as an example to show how to use this file. -1. Download the pre-trained model - -cd egs/librispeech/ASR - -repo_url=https://huggingface.co/Zengwei/icefall-asr-librispeech-streaming-zipformer-2023-05-17 -GIT_LFS_SKIP_SMUDGE=1 git clone $repo_url -repo=$(basename $repo_url) - -pushd $repo -git lfs pull --include "exp/pretrained.pt" - -cd exp -ln -s pretrained.pt epoch-99.pt -popd +1. Download the pre-trained streaming model with CTC head 2. Export the model to ONNX