Skip to content

Commit

Permalink
[egs,scripts] Remove unused --nj option from some scripts (#2679)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-ryan-snyder authored and danpovey committed Sep 6, 2018
1 parent 1cd9d41 commit 72ff0cd
Show file tree
Hide file tree
Showing 26 changed files with 143 additions and 145 deletions.
6 changes: 3 additions & 3 deletions egs/aurora4/s5/local/run_mmi_tri2b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,23 @@ steps/train_diag_ubm.sh --silence-weight 0.5 --nj 10 --cmd "$train_cmd" \
data/train_si84 data/lang exp/tri2b_ali_si84 exp/dubm2b exp/tri2b_denlats_si84 \
exp/tri2b_fmmi_b0.1

for iter in `seq 3 8`; do
for iter in `seq 3 8`; do
steps/decode_fmmi.sh --nj 10 --cmd "$decode_cmd" --iter $iter \
exp/tri2b/graph_tgpr data/test_dev93 exp/tri2b_fmmi_b0.1/decode_tgpr_dev93_it$iter &
done

steps/train_mmi_fmmi.sh --learning-rate 0.005 --boost 0.1 --cmd "$train_cmd" \
data/train_si84 data/lang exp/tri2b_ali_si84 exp/dubm2b exp/tri2b_denlats_si84 \
exp/tri2b_fmmi_b0.1_lr0.005 || exit 1;
for iter in `seq 3 8`; do
for iter in `seq 3 8`; do
steps/decode_fmmi.sh --nj 10 --cmd "$decode_cmd" --iter $iter \
exp/tri2b/graph_tgpr data/test_dev93 exp/tri2b_fmmi_b0.1_lr0.005/decode_tgpr_dev93_it$iter &
done

steps/train_mmi_fmmi_indirect.sh --boost 0.1 --cmd "$train_cmd" \
data/train_si84 data/lang exp/tri2b_ali_si84 exp/dubm2b exp/tri2b_denlats_si84 \
exp/tri2b_fmmi_indirect_b0.1
for iter in `seq 3 8`; do
for iter in `seq 3 8`; do
steps/decode_fmmi.sh --nj 10 --cmd "$decode_cmd" --iter $iter \
exp/tri2b/graph_tgpr data/test_dev93 exp/tri2b_fmmi_indirect_b0.1/decode_tgpr_dev93_it$iter &
done
8 changes: 4 additions & 4 deletions egs/aurora4/s5/local/run_sgmm2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@
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
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
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 \
--use-graphs true --use-gselect true data/train_si284 data/lang exp/sgmm2_5b exp/sgmm2_5b_ali_si284
--use-graphs true --use-gselect true data/train_si284 data/lang exp/sgmm2_5b exp/sgmm2_5b_ali_si284

steps/make_denlats_sgmm2.sh --nj 30 --sub-split 30 --cmd "$decode_cmd" --transform-dir exp/tri4b_ali_si284 \
data/train_si284 data/lang exp/sgmm2_5b_ali_si284 exp/sgmm2_5b_denlats_si284
Expand Down Expand Up @@ -128,7 +128,7 @@ wait

# Examples of combining some of the best decodings: SGMM+MMI with
# MMI+fMMI on a conventional system.

local/score_combine.sh data/test_eval92 \
data/lang_test_bd_tgpr \
exp/tri4b_fmmi_a/decode_tgpr_eval92_it8 \
Expand Down
2 changes: 1 addition & 1 deletion egs/csj/s5/local/run_sgmm2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fi
if [ ! -f exp/ubm5/final.ubm ]; then
steps/train_ubm.sh --cmd "$train_cmd" 1400 data/train_nodup data/lang \
exp/tri4_ali_nodup exp/ubm5 || exit 1;
fi
fi

# steps/train_sgmm2.sh --cmd "$train_cmd" \
steps/train_sgmm2_group.sh --cmd "$train_cmd" \
Expand Down
4 changes: 2 additions & 2 deletions egs/fame/s5/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ fi
if [ $stage -le 7 ]; then
echo "Starting SGMM training."
steps/align_fmllr.sh --nj $train_nj --cmd "$train_cmd" data/train data/lang exp/tri3 exp/tri3_ali || exit 1;
steps/train_ubm.sh --cmd "$train_cmd" $numGaussUBM data/train data/lang exp/tri3_ali exp/ubm || exit 1;
steps/train_sgmm2.sh --cmd "$train_cmd" $numLeavesSGMM $numGaussSGMM data/train data/lang exp/tri3_ali exp/ubm/final.ubm exp/sgmm2 || exit 1;
steps/train_ubm.sh --cmd "$train_cmd" $numGaussUBM data/train data/lang exp/tri3_ali exp/ubm || exit 1;
steps/train_sgmm2.sh --cmd "$train_cmd" $numLeavesSGMM $numGaussSGMM data/train data/lang exp/tri3_ali exp/ubm/final.ubm exp/sgmm2 || exit 1;
echo "SGMM training done."

echo "Decoding the development and test sets using SGMM models"
Expand Down
4 changes: 2 additions & 2 deletions egs/farsdat/s5/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# farsdat, description of the database:
# http://www.assta.org/sst/SST-94-Vol-ll/cache/SST-94-VOL2-Chapter15-p20.pdf

. ./cmd.sh
. ./cmd.sh
[ -f path.sh ] && . ./path.sh
set -e

Expand Down Expand Up @@ -54,7 +54,7 @@ echo ===========================================================================
# Now make MFCC features.
mfccdir=mfcc

for x in train dev test; do
for x in train dev test; do
steps/make_mfcc.sh --cmd "$train_cmd" --nj $feats_nj data/$x exp/make_mfcc/$x $mfccdir
steps/compute_cmvn_stats.sh data/$x exp/make_mfcc/$x $mfccdir
done
Expand Down
16 changes: 8 additions & 8 deletions egs/gale_arabic/s5/local/run_sgmm.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash


. ./path.sh
Expand All @@ -10,17 +10,17 @@ nDecodeJobs=40

galeData=GALE
mfccdir=mfcc
if [[ ! -d exp/tri3b_ali ]]; then

if [[ ! -d exp/tri3b_ali ]]; then
echo "exp/tri3b_ali lattices are required for alignmnet"
exit 1
exit 1
fi


## SGMM (subspace gaussian mixture model), excluding the "speaker-dependent weights"
steps/train_ubm.sh --cmd "$train_cmd" 700 \
data/train data/lang exp/tri3b_ali exp/ubm5a || exit 1;

steps/train_sgmm2.sh --cmd "$train_cmd" 5000 20000 data/train data/lang exp/tri3b_ali \
exp/ubm5a/final.ubm exp/sgmm_5a || exit 1;

Expand All @@ -38,16 +38,16 @@ steps/align_sgmm2.sh --nj $nJobs --cmd "$train_cmd" --transform-dir exp/tri3b_al
steps/make_denlats_sgmm2.sh --nj $nJobs --sub-split 30 --beam 9.0 --lattice-beam 6 \
--cmd "$decode_cmd" --transform-dir \
exp/tri3b_ali data/train data/lang exp/sgmm_5a_ali exp/sgmm_5a_denlats || exit 1;

steps/train_mmi_sgmm2.sh --cmd "$train_cmd" --num-iters 8 --transform-dir exp/tri3b_ali --boost 0.1 \
data/train data/lang exp/sgmm_5a exp/sgmm_5a_denlats exp/sgmm_5a_mmi_b0.1

#decode SGMM MMI
utils/mkgraph.sh data/lang_test exp/sgmm_5a_mmi_b0.1 exp/sgmm_5a_mmi_b0.1/graph
steps/decode_sgmm2.sh --nj $nDecodeJobs --cmd "$decode_cmd" \
--config conf/decode.config --transform-dir exp/tri3b/decode \
exp/sgmm_5a_mmi_b0.1/graph data/test exp/sgmm_5a_mmi_b0.1/decode

for n in 1 2 3 4; do
steps/decode_sgmm2_rescore.sh --cmd "$decode_cmd" --iter $n \
--transform-dir exp/tri3b/decode data/lang_test data/test \
Expand Down
36 changes: 18 additions & 18 deletions egs/iban/s5/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ if [ $stage -le 4 ]; then
echo "Starting triphone training."
steps/align_si.sh --nj $nj --cmd "$train_cmd" \
data/train data/lang exp/mono exp/mono_ali
steps/train_deltas.sh --boost-silence 1.25 --cmd "$train_cmd" \
steps/train_deltas.sh --boost-silence 1.25 --cmd "$train_cmd" \
3200 30000 data/train data/lang exp/mono_ali exp/tri1
echo "Triphone training done."

Expand All @@ -78,7 +78,7 @@ if [ $stage -le 4 ]; then
steps/decode.sh --nj $dev_nj --cmd "$decode_cmd" \
exp/tri1/graph data/dev exp/tri1/decode_dev

steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
data/lang_test/ data/lang_big/ data/dev \
exp/tri1/decode_dev exp/tri1/decode_dev.rescored
echo "Triphone decoding done."
Expand All @@ -89,19 +89,19 @@ if [ $stage -le 5 ]; then
## Triphones + delta delta
# Training
echo "Starting (larger) triphone training."
steps/align_si.sh --nj $nj --cmd "$train_cmd" --use-graphs true \
steps/align_si.sh --nj $nj --cmd "$train_cmd" --use-graphs true \
data/train data/lang exp/tri1 exp/tri1_ali
steps/train_deltas.sh --cmd "$train_cmd" \
4200 40000 data/train data/lang exp/tri1_ali exp/tri2a
echo "Triphone (large) training done."

(
echo "Decoding the dev set using triphone(large) models."
utils/mkgraph.sh data/lang_test exp/tri2a exp/tri2a/graph
utils/mkgraph.sh data/lang_test exp/tri2a exp/tri2a/graph
steps/decode.sh --nj $dev_nj --cmd "$decode_cmd" \
exp/tri2a/graph data/dev exp/tri2a/decode_dev
exp/tri2a/graph data/dev exp/tri2a/decode_dev

steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
data/lang_test/ data/lang_big/ data/dev \
exp/tri2a/decode_dev exp/tri2a/decode_dev.rescored
echo "Triphone(large) decoding done."
Expand All @@ -112,21 +112,21 @@ if [ $stage -le 6 ]; then
### Triphone + LDA and MLLT
# Training
echo "Starting LDA+MLLT training."
steps/align_si.sh --nj $nj --cmd "$train_cmd" \
steps/align_si.sh --nj $nj --cmd "$train_cmd" \
data/train data/lang exp/tri2a exp/tri2a_ali

steps/train_lda_mllt.sh --cmd "$train_cmd" \
steps/train_lda_mllt.sh --cmd "$train_cmd" \
--splice-opts "--left-context=3 --right-context=3" \
4200 40000 data/train data/lang exp/tri2a_ali exp/tri2b
4200 40000 data/train data/lang exp/tri2a_ali exp/tri2b
echo "LDA+MLLT training done."

(
echo "Decoding the dev set using LDA+MLLT models."
utils/mkgraph.sh data/lang_test exp/tri2b exp/tri2b/graph
steps/decode.sh --nj $dev_nj --cmd "$decode_cmd" \
exp/tri2b/graph data/dev exp/tri2b/decode_dev
utils/mkgraph.sh data/lang_test exp/tri2b exp/tri2b/graph
steps/decode.sh --nj $dev_nj --cmd "$decode_cmd" \
exp/tri2b/graph data/dev exp/tri2b/decode_dev

steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
data/lang_test/ data/lang_big/ data/dev \
exp/tri2b/decode_dev exp/tri2b/decode_dev.rescored
echo "LDA+MLLT decoding done."
Expand All @@ -138,7 +138,7 @@ if [ $stage -le 7 ]; then
### Triphone + LDA and MLLT + SAT and FMLLR
# Training
echo "Starting SAT+FMLLR training."
steps/align_si.sh --nj $nj --cmd "$train_cmd" \
steps/align_si.sh --nj $nj --cmd "$train_cmd" \
--use-graphs true data/train data/lang exp/tri2b exp/tri2b_ali
steps/train_sat.sh --cmd "$train_cmd" 4200 40000 \
data/train data/lang exp/tri2b_ali exp/tri3b
Expand All @@ -150,7 +150,7 @@ if [ $stage -le 7 ]; then
steps/decode_fmllr.sh --nj $dev_nj --cmd "$decode_cmd" \
exp/tri3b/graph data/dev exp/tri3b/decode_dev

steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
data/lang_test/ data/lang_big/ data/dev \
exp/tri3b/decode_dev exp/tri3b/decode_dev.rescored
echo "SAT+FMLLR decoding done."
Expand All @@ -163,10 +163,10 @@ if [ $stage -le 8 ]; then
steps/align_fmllr.sh --nj $nj --cmd "$train_cmd" \
data/train data/lang exp/tri3b exp/tri3b_ali

steps/train_ubm.sh --cmd "$train_cmd" \
steps/train_ubm.sh --cmd "$train_cmd" \
600 data/train data/lang exp/tri3b_ali exp/ubm5b2

steps/train_sgmm2.sh --cmd "$train_cmd" \
steps/train_sgmm2.sh --cmd "$train_cmd" \
5200 12000 data/train data/lang exp/tri3b_ali exp/ubm5b2/final.ubm exp/sgmm2_5b2
echo "SGMM training done."

Expand All @@ -180,7 +180,7 @@ if [ $stage -le 8 ]; then
--transform-dir exp/tri3b/decode_dev \
exp/sgmm2_5b2/graph data/dev exp/sgmm2_5b2/decode_dev

steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
steps/lmrescore_const_arpa.sh --cmd "$decode_cmd" \
data/lang_test/ data/lang_big/ data/dev \
exp/sgmm2_5b2/decode_dev exp/sgmm2_5b2/decode_dev.rescored

Expand Down
8 changes: 4 additions & 4 deletions egs/rm/s5/local/run_raw_fmllr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ steps/decode_raw_fmllr.sh --use-normal-fmllr true --config conf/decode.config --
steps/align_raw_fmllr.sh --nj 8 --cmd "$train_cmd" data/train data/lang exp/tri3c exp/tri3c_ali




if [ ! -f exp/ubm4c/final.mdl ]; then
steps/train_ubm.sh --silence-weight 0.5 --cmd "$train_cmd" 400 data/train data/lang exp/tri3c_ali exp/ubm4c || exit 1;
fi
Expand All @@ -43,7 +43,7 @@ steps/decode_sgmm2.sh --config conf/decode.config --nj 20 --cmd "$decode_cmd" \

steps/decode_sgmm2.sh --use-fmllr true --config conf/decode.config --nj 20 --cmd "$decode_cmd" \
--transform-dir exp/tri3c/decode exp/sgmm2_4c/graph data/test exp/sgmm2_4c/decode_fmllr || exit 1;


exit 0;

Expand All @@ -61,7 +61,7 @@ exit 0;
# awk -v scale=30.0 '{printf("%s [ ", $1); for (n=3;n<NF;n++) { printf("%f ", scale*$n); } print "]"; }' > exp/sgmm2_4c_x30/decode_ug/vecs.1
# )
# exit 0;
# ##
# ##
# steps/decode_sgmm2.sh --config conf/decode.config --nj 20 --cmd "$decode_cmd" \
# exp/sgmm2_4c.no_transform/graph data/test exp/sgmm2_4c.no_transform/decode || exit 1;

Expand Down
12 changes: 6 additions & 6 deletions egs/rm/s5/local/run_sgmm2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if [ ! -f exp/ubm4a/final.ubm ] || [ ! data/train/feats.scp -nt exp/ubm4a/final.ubm ]; then
steps/train_ubm.sh --silence-weight 0.5 --cmd "$train_cmd" 400 data/train data/lang exp/tri3b_ali exp/ubm4a || exit 1;
fi

steps/train_sgmm2.sh --cmd "$train_cmd" 5000 7000 data/train data/lang exp/tri3b_ali exp/ubm4a/final.ubm exp/sgmm2_4a || exit 1;

utils/mkgraph.sh data/lang exp/sgmm2_4a exp/sgmm2_4a/graph || exit 1;
Expand All @@ -26,22 +26,22 @@ steps/decode_sgmm2.sh --use-fmllr true --config conf/decode.config --nj 20 --cmd
steps/make_denlats_sgmm2.sh --nj 8 --sub-split 20 --cmd "$decode_cmd" --transform-dir exp/tri3b \
data/train data/lang exp/sgmm2_4a_ali exp/sgmm2_4a_denlats
steps/train_mmi_sgmm2.sh --cmd "$decode_cmd" --transform-dir exp/tri3b --boost 0.2 \
data/train data/lang exp/sgmm2_4a_ali exp/sgmm2_4a_denlats exp/sgmm2_4a_mmi_b0.2
data/train data/lang exp/sgmm2_4a_ali exp/sgmm2_4a_denlats exp/sgmm2_4a_mmi_b0.2

for iter in 1 2 3 4; do
steps/decode_sgmm2_rescore.sh --cmd "$decode_cmd" --iter $iter \
--transform-dir exp/tri3b/decode data/lang data/test exp/sgmm2_4a/decode exp/sgmm2_4a_mmi_b0.2/decode_it$iter &
done
done
(
steps/train_mmi_sgmm2.sh --cmd "$decode_cmd" --transform-dir exp/tri3b --boost 0.2 --drop-frames true \
data/train data/lang exp/sgmm2_4a_ali exp/sgmm2_4a_denlats exp/sgmm2_4a_mmi_b0.2_x
data/train data/lang exp/sgmm2_4a_ali exp/sgmm2_4a_denlats exp/sgmm2_4a_mmi_b0.2_x

for iter in 1 2 3 4; do
steps/decode_sgmm2_rescore.sh --cmd "$decode_cmd" --iter $iter \
--transform-dir exp/tri3b/decode data/lang data/test exp/sgmm2_4a/decode exp/sgmm2_4a_mmi_b0.2_x/decode_it$iter &
done
done
)
wait
wait
steps/decode_combine.sh data/test data/lang exp/tri1/decode exp/tri2a/decode exp/combine_1_2a/decode || exit 1;
steps/decode_combine.sh data/test data/lang exp/sgmm2_4a/decode exp/tri3b_mmi/decode exp/combine_sgmm2_4a_3b/decode || exit 1;
# combining the sgmm run and the best MMI+fMMI run.
Expand Down
6 changes: 3 additions & 3 deletions egs/rm/s5/local/run_sgmm2x.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ steps/decode_sgmm2.sh --use-fmllr true --config conf/decode.config --nj 20 --cmd
steps/make_denlats_sgmm2.sh --nj 8 --sub-split 20 --cmd "$decode_cmd" --transform-dir exp/tri3b \
data/train data/lang exp/sgmm2x_4a_ali exp/sgmm2x_4a_denlats
steps/train_mmi_sgmm2.sh --cmd "$decode_cmd" --transform-dir exp/tri3b --boost 0.2 \
data/train data/lang exp/sgmm2x_4a_ali exp/sgmm2x_4a_denlats exp/sgmm2x_4a_mmi_b0.2
data/train data/lang exp/sgmm2x_4a_ali exp/sgmm2x_4a_denlats exp/sgmm2x_4a_mmi_b0.2

for iter in 1 2 3 4; do
steps/decode_sgmm2_rescore.sh --cmd "$decode_cmd" --iter $iter \
--transform-dir exp/tri3b/decode data/lang data/test exp/sgmm2x_4a/decode exp/sgmm2x_4a_mmi_b0.2/decode_it$iter &
done
done

wait
wait
steps/decode_combine.sh data/test data/lang exp/tri1/decode exp/tri2a/decode exp/combine_1_2a/decode || exit 1;
steps/decode_combine.sh data/test data/lang exp/sgmm2x_4a/decode exp/tri3b_mmi/decode exp/combine_sgmm2x_4a_3b/decode || exit 1;
# combining the sgmm run and the best MMI+fMMI run.
Expand Down
4 changes: 2 additions & 2 deletions egs/rm/s5/local/run_sgmm_multiling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ utils/convert_models.sh exp/tri2b data_ml/lang_rm exp_ml/tri2b_rm data_ml/lang_r

utils/convert_models.sh ../../wsj/exp/tri4b data_ml/lang_wsj exp_ml/tri4b_wsj data_ml/lang

# Re-do the alignment of the RM tri2b setup with the converted models
# Re-do the alignment of the RM tri2b setup with the converted models
# (this avoids the hassle of converting the alignment.)
steps/align_si.sh --nj 8 --cmd "$train_cmd" data_ml/train_rm data_ml/lang exp_ml/tri2b_rm \
exp_ml/tri2b_rm_ali || exit 1;
Expand All @@ -66,7 +66,7 @@ steps/train_sat.sh 1800 9000 data_ml/train_rm data_ml/lang exp_ml/tri2b_rm_ali e
# "merge-tree" program will need, for each tree, a record of which sets of
# phones it was supposed to handle, since this is not recorded in the tree
# itself-- we can get this from the transition models which do record this.
# probably the "merge-tree" program will have usage:
# probably the "merge-tree" program will have usage:
# merge-tree <tree1> <phone-set-1> <tree2> <phone-set-2> ... <tree-out>
# where the phone-set-n's will probably be filenames that contain lists of
# the phones.
Expand Down
4 changes: 2 additions & 2 deletions egs/swahili/s5/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ echo -e "fMMI+MMI training done.\n"
### Triphone + LDA and MLLT + SGMM
## SGMM
# Training
steps/train_ubm.sh --cmd "$train_cmd" 500 data/train data/lang exp/system1/tri3b_ali exp/system1/ubm5b2 || exit 1;
steps/train_ubm.sh --cmd "$train_cmd" 500 data/train data/lang exp/system1/tri3b_ali exp/system1/ubm5b2 || exit 1;
steps/train_sgmm2.sh --cmd "$train_cmd" 5000 12000 data/train data/lang exp/system1/tri3b_ali exp/system1/ubm5b2/final.ubm exp/system1/sgmm2_5b2 || exit 1;
# Graph compilation
utils/mkgraph.sh data/lang exp/system1/sgmm2_5b2 exp/system1/sgmm2_5b2/graph
Expand Down Expand Up @@ -146,7 +146,7 @@ for iter in 1 2 3 4; do
done

## MBR
rm -r exp/system1/sgmm2_5b2_mmi_b0.1/decode_test_it3.mbr 2>/dev/null
rm -r exp/system1/sgmm2_5b2_mmi_b0.1/decode_test_it3.mbr 2>/dev/null
cp -r exp/system1/sgmm2_5b2_mmi_b0.1/decode_test_it3{,.mbr}
local/score_mbr.sh data/test data/lang exp/system1/sgmm2_5b2_mmi_b0.1/decode_test_it3.mbr

Expand Down
4 changes: 2 additions & 2 deletions egs/swbd/s5/local/run_sgmm2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if [ ! -f exp/ubm5a/final.ubm ]; then
steps/train_ubm.sh --cmd "$train_cmd" 700 data/train_100k_nodup data/lang \
exp/tri4a_ali_100k_nodup exp/ubm5a || exit 1;
fi
fi

steps/train_sgmm2.sh --cmd "$train_cmd" \
9000 30000 data/train_100k_nodup data/lang exp/tri4a_ali_100k_nodup \
Expand Down Expand Up @@ -65,4 +65,4 @@ done
done
wait
)

Loading

0 comments on commit 72ff0cd

Please sign in to comment.