Commit 0ad20310 authored by Dan Povey's avatar Dan Povey
Browse files

Fix to nnet example script run_5b.sh, and to train_sgmm.sh RE --ciphone-list...

Fix to nnet example script run_5b.sh, and to train_sgmm.sh RE --ciphone-list (bug RE context-dependency).

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@2864 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 0277950f
......@@ -56,10 +56,10 @@ if [ $stage -le 3 ]; then # create testing fbank data.
fi
if [ $stage -le 4 ]; then
steps/decode_nnet_cpu.sh --cmd "$decode_cmd" --nj 10 \
steps/nnet2/decode.sh --cmd "$decode_cmd" --nj 10 \
exp/tri4b/graph_bd_tgpr data/test_dev93_fbank exp/nnet5b/decode_bd_tgpr_dev93
steps/decode_nnet_cpu.sh --cmd "$decode_cmd" --nj 8 \
steps/nnet2/decode.sh --cmd "$decode_cmd" --nj 8 \
exp/tri4b/graph_bd_tgpr data/test_eval92_fbank exp/nnet5b/decode_bd_tgpr_eval92
fi
......
......@@ -79,18 +79,19 @@
exp/sgmm2_5b/graph_bd_tgpr data/test_eval92 exp/sgmm2_5b/decode_bd_tgpr_eval92
) &
(
steps/train_sgmm2.sh --cmd "$train_cmd" \
--context-opts "--context-width=5 --central-position=2" \
11000 25000 data/train_si284 data/lang exp/tri4b_ali_si284 \
exp/ubm5b/final.ubm exp/sgmm2_5c || exit 1;
# Decode from lattices in exp/sgmm2_5b
steps/decode_sgmm2_fromlats.sh --cmd "$decode_cmd" --transform-dir exp/tri4b/decode_tgpr_dev93 \
data/test_dev93 data/lang_test_tgpr exp/sgmm2_5b/decode_tgpr_dev93 exp/sgmm2_5c/decode_tgpr_dev93
steps/decode_sgmm2_fromlats.sh --cmd "$decode_cmd" --transform-dir exp/tri4b/decode_tgpr_eval92 \
data/test_eval92 data/lang_test_tgpr exp/sgmm2_5b/decode_tgpr_eval92 exp/sgmm2_5c/decode_tgpr_eval92
) &
# This shows how you would build and test a quinphone SGMM2 system, but
(
steps/train_sgmm2.sh --cmd "$train_cmd" \
--context-opts "--context-width=5 --central-position=2" \
11000 25000 data/train_si284 data/lang exp/tri4b_ali_si284 \
exp/ubm5b/final.ubm exp/sgmm2_5c || exit 1;
# Decode from lattices in exp/sgmm2_5b
steps/decode_sgmm2_fromlats.sh --cmd "$decode_cmd" --transform-dir exp/tri4b/decode_tgpr_dev93 \
data/test_dev93 data/lang_test_tgpr exp/sgmm2_5b/decode_tgpr_dev93 exp/sgmm2_5c/decode_tgpr_dev93
steps/decode_sgmm2_fromlats.sh --cmd "$decode_cmd" --transform-dir exp/tri4b/decode_tgpr_eval92 \
data/test_eval92 data/lang_test_tgpr exp/sgmm2_5b/decode_tgpr_eval92 exp/sgmm2_5c/decode_tgpr_eval92
) &
steps/align_sgmm2.sh --nj 30 --cmd "$train_cmd" --transform-dir exp/tri4b_ali_si284 \
......
......@@ -75,6 +75,7 @@ feat_dim=`gmm-info $alidir/final.mdl 2>/dev/null | awk '/feature dimension/{prin
[ -z $phn_dim ] && phn_dim=$[$feat_dim+1]
[ -z $spk_dim ] && spk_dim=$feat_dim
nj=`cat $alidir/num_jobs` || exit 1;
ciphonelist=`cat $lang/phones/context_indep.csl` || exit 1;
mkdir -p $dir/log
echo $nj > $dir/num_jobs
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment