File size: 750 Bytes
f718466
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# simulated streaming decoding
export CUDA_VISIBLE_DEVICES="0"
for m in greedy_search modified_beam_search fast_beam_search; do
  ./zipformer/decode.py \
      --epoch 30 \
      --avg 8 \
      --exp-dir zipformer/exp-causal/ \
      --max-duration 600 \
      --causal 1 \
      --chunk-size 16 \
      --left-context-frames 128 \
      --decoding-method $m
done

# chunk-wise streaming decoding
export CUDA_VISIBLE_DEVICES="0"
for m in greedy_search modified_beam_search fast_beam_search; do
  ./zipformer/streaming_decode.py \
      --epoch 30 \
      --avg 8 \
      --exp-dir zipformer/exp-causal/ \
      --causal 1 \
      --chunk-size 16 \
      --left-context-frames 128 \
      --num-decode-streams 1000 \
      --decoding-method $m
done