daniel-dona commited on
Commit
f718466
·
verified ·
1 Parent(s): b851736

Upload folder using huggingface_hub

Browse files
exp/decode.sh ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # simulated streaming decoding
2
+ export CUDA_VISIBLE_DEVICES="0"
3
+ for m in greedy_search modified_beam_search fast_beam_search; do
4
+ ./zipformer/decode.py \
5
+ --epoch 30 \
6
+ --avg 8 \
7
+ --exp-dir zipformer/exp-causal/ \
8
+ --max-duration 600 \
9
+ --causal 1 \
10
+ --chunk-size 16 \
11
+ --left-context-frames 128 \
12
+ --decoding-method $m
13
+ done
14
+
15
+ # chunk-wise streaming decoding
16
+ export CUDA_VISIBLE_DEVICES="0"
17
+ for m in greedy_search modified_beam_search fast_beam_search; do
18
+ ./zipformer/streaming_decode.py \
19
+ --epoch 30 \
20
+ --avg 8 \
21
+ --exp-dir zipformer/exp-causal/ \
22
+ --causal 1 \
23
+ --chunk-size 16 \
24
+ --left-context-frames 128 \
25
+ --num-decode-streams 1000 \
26
+ --decoding-method $m
27
+ done
28
+
exp/epoch-30.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49c56b6984d25caedd1b017e2ead5c61f65c143d7353b0f62b0ba7949484a3ad
3
+ size 135
exp/export.sh ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ./zipformer/export.py \
2
+ --exp-dir ./zipformer/exp-causal \
3
+ --bpe-model data/lang_bpe_500/bpe.model \
4
+ --causal 1 \
5
+ --chunk-size 16 \
6
+ --left-context-frames 128 \
7
+ --epoch 30 \
8
+ --avg 8 \
9
+ --jit 1
10
+
11
+
exp/jit_pretrained_streaming.sh ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ export CUDA_VISIBLE_DEVICES="0"
2
+
3
+ ./zipformer/jit_pretrained_streaming.py \
4
+ --nn-model-filename ./zipformer/exp-causal/jit_script_chunk_16_left_128.pt \
5
+ --bpe-model ./data/lang_bpe_500/bpe.model \
6
+ test_wavs/1221-135766-0001.wav
7
+ # test_wavs/1089-134686-0001.wav
8
+ # test_wavs/1221-135766-0002.wav
9
+
10
+
exp/jit_script_chunk_16_left_128.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f90279ab5eb351f67f2a1ba61990b78706752bdf3656fef24a4e405e1846efa
3
+ size 267277530
exp/pretrained.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28164e2ee15a6c04b5206422cbfb8b795fbc01c4d04f9d85a906b4eb5d953647
3
+ size 134
exp/pretrained.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export CUDA_VISIBLE_DEVICES=0
2
+
3
+ ./zipformer/pretrained.py \
4
+ --checkpoint ./zipformer/exp-causal/pretrained.pt \
5
+ --bpe-model ./data/lang_bpe_500/bpe.model \
6
+ --method greedy_search \
7
+ --causal 1 \
8
+ --chunk-size 16 \
9
+ --left-context-frames 128 \
10
+ test_wavs/1089-134686-0001.wav \
11
+ test_wavs/1221-135766-0001.wav \
12
+ test_wavs/1221-135766-0002.wav
13
+
exp/train.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export CUDA_VISIBLE_DEVICES="0,1,2,3"
2
+ ./zipformer/train.py \
3
+ --world-size 4 \
4
+ --num-epochs 30 \
5
+ --start-epoch 1 \
6
+ --use-fp16 1 \
7
+ --exp-dir zipformer/exp-causal \
8
+ --causal 1 \
9
+ --full-libri 1 \
10
+ --max-duration 1000 \
11
+ --master-port 12345
12
+
13
+