File size: 359 Bytes
9609f3c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash

. path.sh

set -ex

if [ ! -f ./t/epoch-99.pt ]; then
  mkdir -p t
  pushd ./t
  ln -s /path/to/icefall_asr_wenetspeech_pruned_transducer_stateless2/exp/pretrained_epoch_10_avg_2.pt ./epoch-99.pt
  popd
fi

./pruned_transducer_stateless2/export.py \
  --exp-dir ./t \
  --lang-dir ./data/lang_char \
  --epoch 99 \
  --avg 1 \
  --onnx 1