File size: 625 Bytes
501246b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
30
31
32
#!/usr/bin/env bash

export CUDA_VISIBLE_DEVICES=0

# greedy search
./zipformer/decode.py \
  --epoch 30 \
  --avg 9 \
  --exp-dir ./zipformer/exp \
  --max-duration 1000 \
  --decoding-method greedy_search

# modified beam search
./zipformer/decode.py \
  --epoch 30 \
  --avg 9 \
  --exp-dir ./zipformer/exp \
  --max-duration 1000 \
  --decoding-method modified_beam_search \
  --beam-size 4

# fast beam search (one best)
./zipformer/decode.py \
  --epoch 30 \
  --avg 9 \
  --exp-dir ./zipformer/exp \
  --max-duration 1000 \
  --decoding-method fast_beam_search \
  --beam 20.0 \
  --max-contexts 8 \
  --max-states 64