Commit 36a18b6a authored by Dan Povey's avatar Dan Povey
Browse files

fix bug in train_ubm_lda_etc.sh

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@603 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent b4d99329
......@@ -71,10 +71,10 @@ fi
echo "Clustering model $alidir/final.mdl to get initial UBM"
# typically: --intermediate-numcomps=2000 --ubm-numcomps=400
#$cmd $dir/log/cluster.log \
# init-ubm --intermediate-numcomps=$intermediate --ubm-numcomps=$numcomps \
# --verbose=2 --fullcov-ubm=true $alidir/final.mdl $alidir/final.occs \
# $dir/0.ubm || exit 1;
$cmd $dir/log/cluster.log \
init-ubm --intermediate-numcomps=$intermediate --ubm-numcomps=$numcomps \
--verbose=2 --fullcov-ubm=true $alidir/final.mdl $alidir/final.occs \
$dir/0.ubm || exit 1;
rm $dir/.error 2>/dev/null
# First do Gaussian selection to 50 components, which will be used
......@@ -104,5 +104,7 @@ for x in 0 1 2 3; do
rm $dir/$x.*.acc $dir/$x.ubm
done
rm $dir/gselect_diag.*.gz
rm $dir/final.ubm 2>/dev/null
mv $dir/4.ubm $dir/final.ubm || exit 1;
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