diff options
Diffstat (limited to 'kaldi_io')
-rwxr-xr-x | kaldi_io/tools/convert_from_kaldi_pretrain.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kaldi_io/tools/convert_from_kaldi_pretrain.sh b/kaldi_io/tools/convert_from_kaldi_pretrain.sh index 78f532f..81fe840 100755 --- a/kaldi_io/tools/convert_from_kaldi_pretrain.sh +++ b/kaldi_io/tools/convert_from_kaldi_pretrain.sh @@ -17,12 +17,13 @@ dir=$6 [[ -z $data_fmllr ]] && data_fmllr=data-fmllr-tri3 [[ -z $alidir ]] && alidir=exp/tri3_ali -[[ -z $dir ]] && dir=exp/dnn4_nerv_prepare +[[ -z $dir ]] && dir=exp/dnn4_nerv_dnn [[ -z $data ]] && data=$data_fmllr/train_tr90 [[ -z $data_cv ]] && data_cv=$data_fmllr/train_cv10 kaldi_to_nerv=$nerv_kaldi/tools/kaldi_to_nerv mkdir $dir -p mkdir $dir/log -p + ###### PREPARE DATASETS ###### cp $data/feats.scp $dir/train_sorted.scp cp $data_cv/feats.scp $dir/cv.scp @@ -44,6 +45,7 @@ nnet-initialize --binary=false $nnet_proto $nnet_init $kaldi_to_nerv $nnet_init $dir/nnet_output.nerv $hid_num $kaldi_to_nerv <(nnet-copy --binary=false $pretrain_dir/${hid_num}.dbn -) $dir/nnet_init.nerv $kaldi_to_nerv <(nnet-copy --binary=false $pretrain_dir/final.feature_transform -) $dir/nnet_trans.nerv + ###### PREPARE FOR DECODING ##### echo "Using PDF targets from dirs '$alidir' '$alidir_cv'" # training targets in posterior format, |