Commit 9ef086e8 authored by Dan Povey's avatar Dan Povey
Browse files

Fix to UBM-training script.

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@601 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 684f6839
......@@ -70,16 +70,30 @@ fi
echo "Clustering model $alidir/final.mdl to get initial UBM"
# typically: --intermediate-numcomps=2000 --ubm-numcomps=400
init-ubm --intermediate-numcomps=$intermediate --ubm-numcomps=$numcomps --verbose=2 \
--fullcov-ubm=true $alidir/final.mdl $alidir/final.occs \
$dir/0.ubm 2> $dir/log/cluster.log
#$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
# as the initial screen for all further passes.
for n in `get_splits.pl $nj`; do
$cmd $dir/log/gselect_diag.$n.log \
gmm-gselect --n=50 "fgmm-global-to-gmm $dir/0.ubm - |" "${featspart[$n]}" \
"ark:|gzip -c >$dir/gselect_diag.$n.gz" &
done
wait
[ -f $dir/.error ] && echo "Error doing GMM selection" && exit 1;
for x in 0 1 2 3; do
echo "Pass $x"
for n in `get_splits.pl $nj`; do
$cmd $dir/log/acc.$x.$n.log \
fgmm-global-acc-stats --diag-gmm-nbest=15 --binary=false --verbose=2 $dir/$x.ubm "${featspart[$n]}" \
gmm-gselect "--gselect=ark:gunzip -c $dir/gselect_diag.$n.gz|" \
"fgmm-global-to-gmm $dir/$x.ubm - |" "${featspart[$n]}" ark:- \| \
fgmm-global-acc-stats --gselect=ark:- $dir/$x.ubm "${featspart[$n]}" \
$dir/$x.$n.acc || touch $dir/.error &
done
wait
......
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