зеркало из https://github.com/mozilla/kaldi.git
trunk: minor script fixes regarding --norm-vars options.
git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@3208 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
Родитель
9b4a68f241
Коммит
80205a1357
|
@ -97,7 +97,7 @@ if [ ! -z "$transform_dir" ]; then
|
|||
echo "$0: using transforms from $transform_dir"
|
||||
feats="$feats transform-feats --utt2spk=ark:$sdata/JOB/utt2spk ark,s,cs:$transform_dir/trans.JOB ark:- ark:- |"
|
||||
elif [ -f $transform_dir/raw_trans.1 ]; then
|
||||
feats="ark,s,cs:apply-cmvn --norm-vars=false --utt2spk=ark:$sdata/JOB/utt2spk scp:$sdata/JOB/cmvn.scp scp:$sdata/JOB/feats.scp ark:- | transform-feats --utt2spk=ark:$sdata/JOB/utt2spk ark,s,cs:$transform_dir/raw_trans.JOB ark:- ark:- | splice-feats $splice_opts ark:- ark:- | transform-feats $srcdir/final.mat ark:- ark:- |"
|
||||
feats="ark,s,cs:apply-cmvn --norm-vars=$norm_vars --utt2spk=ark:$sdata/JOB/utt2spk scp:$sdata/JOB/cmvn.scp scp:$sdata/JOB/feats.scp ark:- | transform-feats --utt2spk=ark:$sdata/JOB/utt2spk ark,s,cs:$transform_dir/raw_trans.JOB ark:- ark:- | splice-feats $splice_opts ark:- ark:- | transform-feats $srcdir/final.mat ark:- ark:- |"
|
||||
else
|
||||
echo "$0: no such file $transform_dir/trans.1 or $transform_dir/raw_trans.1, invalid --transform-dir option?"
|
||||
exit 1;
|
||||
|
|
|
@ -49,6 +49,7 @@ numgauss=$numleaves
|
|||
incgauss=$[($totgauss-$numgauss)/$max_iter_inc] # per-iter increment for #Gauss
|
||||
oov=`cat $lang/oov.int` || exit 1;
|
||||
ciphonelist=`cat $lang/phones/context_indep.csl` || exit 1;
|
||||
norm_vars=`cat $srcdir/norm_vars 2>/dev/null` || norm_vars=false # cmn/cmvn option, default false.
|
||||
nj=`cat $alidir/num_jobs` || exit 1;
|
||||
mkdir -p $dir/log
|
||||
echo $nj > $dir/num_jobs
|
||||
|
@ -56,7 +57,7 @@ echo $nj > $dir/num_jobs
|
|||
sdata=$data/split$nj;
|
||||
[[ -d $sdata && $data/feats.scp -ot $sdata ]] || split_data.sh $data $nj || exit 1;
|
||||
|
||||
feats="ark,s,cs:apply-cmvn --norm-vars=false --utt2spk=ark:$sdata/JOB/utt2spk scp:$sdata/JOB/cmvn.scp scp:$sdata/JOB/feats.scp ark:- | add-deltas ark:- ark:- |"
|
||||
feats="ark,s,cs:apply-cmvn --norm-vars=$norm_vars --utt2spk=ark:$sdata/JOB/utt2spk scp:$sdata/JOB/cmvn.scp scp:$sdata/JOB/feats.scp ark:- | add-deltas ark:- ark:- |"
|
||||
|
||||
rm $dir/.error 2>/dev/null
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче