Commit 60fa7170 authored by Korbinian Riedhammer's avatar Korbinian Riedhammer
Browse files

fixed issue in rm/s3/steps/train_2lvl_* with large number of codebooks

git-svn-id: https://svn.code.sf.net/p/kaldi/code/sandbox/discrim@473 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 6f123ae8
......@@ -115,7 +115,16 @@ fi
echo "Initializing model"
tied-diag-gmm-init-model $dir/tree $lang/topo $dir/tree.map $dir/ubm-diag.{?,??} $dir/1.mdl 2> $dir/init_model.log || exit 1;
echo "Initializing model"
if [ $max_leaves_first -gt 999 ]; then
tied-diag-gmm-init-model $dir/tree $lang/topo $dir/tree.map $dir/ubm-full.{?,??,???,????} $dir/1.mdl 2> $dir/init_model.log || exit 1;
elif [ $max_leaves_first -gt 99 ]; then
tied-diag-gmm-init-model $dir/tree $lang/topo $dir/tree.map $dir/ubm-full.{?,??,???} $dir/1.mdl 2> $dir/init_model.log || exit 1;
elif [ $max_leaves_first -gt 9 ]; then
tied-diag-gmm-init-model $dir/tree $lang/topo $dir/tree.map $dir/ubm-full.{?,??} $dir/1.mdl 2> $dir/init_model.log || exit 1;
else
tied-diag-gmm-init-model $dir/tree $lang/topo $dir/tree.map $dir/ubm-full.? $dir/1.mdl 2> $dir/init_model.log || exit 1;
fi
rm $dir/treeacc
......
......@@ -121,7 +121,15 @@ fi
echo "Initializing model"
tied-full-gmm-init-model $dir/tree $lang/topo $dir/tree.map $dir/ubm-full.{?,??,???} $dir/1.mdl 2> $dir/init_model.log || exit 1;
if [ $max_leaves_first -gt 999 ]; then
tied-full-gmm-init-model $dir/tree $lang/topo $dir/tree.map $dir/ubm-full.{?,??,???,????} $dir/1.mdl 2> $dir/init_model.log || exit 1;
elif [ $max_leaves_first -gt 99 ]; then
tied-full-gmm-init-model $dir/tree $lang/topo $dir/tree.map $dir/ubm-full.{?,??,???} $dir/1.mdl 2> $dir/init_model.log || exit 1;
elif [ $max_leaves_first -gt 9 ]; then
tied-full-gmm-init-model $dir/tree $lang/topo $dir/tree.map $dir/ubm-full.{?,??} $dir/1.mdl 2> $dir/init_model.log || exit 1;
else
tied-full-gmm-init-model $dir/tree $lang/topo $dir/tree.map $dir/ubm-full.? $dir/1.mdl 2> $dir/init_model.log || exit 1;
fi
rm $dir/treeacc
......
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