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
This commit is contained in:
Korbinian Riedhammer 2011-09-16 12:45:40 +00:00
Родитель 6f123ae808
Коммит 60fa7170d8
2 изменённых файлов: 19 добавлений и 2 удалений

Просмотреть файл

@ -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