yfyeung commited on
Commit
92b0ee3
1 Parent(s): 7d24484

Upload 6 files

Browse files
Files changed (6) hide show
  1. exp/decode.sh +11 -0
  2. exp/export-onnx.sh +10 -0
  3. exp/export.sh +10 -0
  4. exp/onnx_pretrained.sh +11 -0
  5. exp/pretrained.sh +8 -0
  6. exp/run.sh +12 -0
exp/decode.sh ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ export CUDA_VISIBLE_DEVICES=
4
+
5
+ # greedy search
6
+ ./pruned_transducer_stateless7/decode.py \
7
+ --epoch 30 \
8
+ --avg 4 \
9
+ --exp-dir ./pruned_transducer_stateless7/exp \
10
+ --max-duration 600 \
11
+ --decoding-method greedy_search
exp/export-onnx.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ export CUDA_VISIBLE_DEVICES=
4
+
5
+ ./pruned_transducer_stateless7/export-onnx.py \
6
+ --bpe-model ./data/lang_bpe_500/bpe.model \
7
+ --use-averaged-model 1 \
8
+ --epoch 30 \
9
+ --avg 4 \
10
+ --exp-dir ./pruned_transducer_stateless7/exp
exp/export.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ export CUDA_VISIBLE_DEVICES=
4
+
5
+ ./pruned_transducer_stateless7/export.py \
6
+ --exp-dir ./pruned_transducer_stateless7/exp \
7
+ --bpe-model data/lang_bpe_500/bpe.model \
8
+ --epoch 30 \
9
+ --avg 4 \
10
+ --jit 1
exp/onnx_pretrained.sh ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+
4
+ ./pruned_transducer_stateless7/onnx_pretrained.py \
5
+ --encoder-model-filename ./pruned_transducer_stateless7/exp/encoder-epoch-9999-avg-1.onnx \
6
+ --decoder-model-filename ./pruned_transducer_stateless7/exp/decoder-epoch-9999-avg-1.onnx \
7
+ --joiner-model-filename ./pruned_transducer_stateless7/exp/joiner-epoch-9999-avg-1.onnx \
8
+ --tokens ./data/lang_bpe_500/tokens.txt \
9
+ ./test_wavs/1089-134686-0001.wav \
10
+ ./test_wavs/1221-135766-0001.wav \
11
+ ./test_wavs/1221-135766-0002.wav
exp/pretrained.sh ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ ./pruned_transducer_stateless7/pretrained.py \
4
+ --checkpoint ./pruned_transducer_stateless7/exp/pretrained.pt \
5
+ --bpe-model ./data/lang_bpe_500/bpe.model \
6
+ --method greedy_search \
7
+ ./test_wavs/1089-134686-0001.wav \
8
+ ./test_wavs/1221-135766-0001.wav
exp/run.sh ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+
3
+ export CUDA_VISIBLE_DEVICES="0,1,2,3,4,5,6,7"
4
+
5
+ ./pruned_transducer_stateless7/train.py \
6
+ --world-size 8 \
7
+ --num-epochs 30 \
8
+ --start-epoch 1 \
9
+ --exp-dir pruned_transducer_stateless7/exp \
10
+ --use-multidataset 1 \
11
+ --use-fp16 1 \
12
+ --max-duration 750