luomingshuang csukuangfj commited on
Commit
9609f3c
1 Parent(s): 3dc886a

Upload export.sh (#3)

Browse files

- Upload export.sh (b35d76b7c0ffdf54b0060c854a13d76c8c5d3651)


Co-authored-by: fangjun <csukuangfj@users.noreply.huggingface.co>

Files changed (1) hide show
  1. exp/export.sh +19 -0
exp/export.sh ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ . path.sh
4
+
5
+ set -ex
6
+
7
+ if [ ! -f ./t/epoch-99.pt ]; then
8
+ mkdir -p t
9
+ pushd ./t
10
+ ln -s /path/to/icefall_asr_wenetspeech_pruned_transducer_stateless2/exp/pretrained_epoch_10_avg_2.pt ./epoch-99.pt
11
+ popd
12
+ fi
13
+
14
+ ./pruned_transducer_stateless2/export.py \
15
+ --exp-dir ./t \
16
+ --lang-dir ./data/lang_char \
17
+ --epoch 99 \
18
+ --avg 1 \
19
+ --onnx 1