run_5d.sh
1.06 KB
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
33
34
35
36
37
#!/bin/bash
# This runs on the full training set (with duplicates removed), with p-norm
# units, on top of fMLLR features, on GPU.
temp_dir=
dir=exp/nnet2_5d
stage=-5
. ./cmd.sh
. ./path.sh
. utils/parse_options.sh
parallel_opts="--gpu 1" # This is suitable for the CLSP network, you'll
# likely have to change it.
(
if [ ! -f $dir/final.mdl ]; then
steps/nnet2/train_pnorm_accel2.sh --parallel-opts "$parallel_opts" \
--cmd "$decode_cmd" --stage $stage \
--num-threads 1 --minibatch-size 512 \
--mix-up 20000 --samples-per-iter 300000 \
--num-epochs 15 \
--initial-effective-lrate 0.005 --final-effective-lrate 0.0005 \
--num-jobs-initial 3 --num-jobs-final 8 --num-hidden-layers 4 --splice-width 5 \
--pnorm-input-dim 4000 --pnorm-output-dim 400 --p 2 \
data/train data/lang exp/tri5a_ali $dir || exit 1;
fi
steps/nnet2/decode.sh --cmd "$decode_cmd" --nj 10 \
--config conf/decode.config \
--transform-dir exp/tri5a/decode \
exp/tri5a/graph data/dev \
$dir/decode || exit 1;
)