File size: 856 Bytes
a1bcc06
 
 
 
 
6b1d59e
a1bcc06
 
 
 
 
 
 
6b1d59e
a1bcc06
 
 
 
 
 
 
 
6b1d59e
a1bcc06
 
 
 
 
 
 
 
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
#!/usr/bin/env bash

export CUDA_VISIBLE_DEVICES=

# greedy search
./pruned_transducer_stateless7_ctc_bs/ctc_guide_decode_bs.py \
    --epoch 30 \
    --avg 13 \
    --exp-dir ./pruned_transducer_stateless7_ctc_bs/exp \
    --max-duration 600 \
    --decoding-method greedy_search

# modified beam search
./pruned_transducer_stateless7_ctc_bs/ctc_guide_decode_bs.py \
    --epoch 30 \
    --avg 13 \
    --exp-dir ./pruned_transducer_stateless7_ctc_bs/exp \
    --max-duration 600 \
    --decoding-method modified_beam_search \
    --beam-size 4

# fast beam search (one best)
./pruned_transducer_stateless7_ctc_bs/ctc_guide_decode_bs.py \
    --epoch 30 \
    --avg 13 \
    --exp-dir ./pruned_transducer_stateless7_ctc_bs/exp \
    --max-duration 600 \
    --decoding-method fast_beam_search \
    --beam 20.0 \
    --max-contexts 8 \
    --max-states 64