summaryrefslogtreecommitdiff
path: root/kaldi_io/tools/convert_from_kaldi_pretrain.sh
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2016-03-01 00:33:28 +0800
committerDeterminant <[email protected]>2016-03-01 00:33:28 +0800
commit18b0e3d993ec5ce8e97a6affb533c9ace940bfff (patch)
tree58e78530bf2d5e1cff03754404a1be2c11856fee /kaldi_io/tools/convert_from_kaldi_pretrain.sh
parente7c9175e1059a15720025a99ccdb35d5bf6dc30f (diff)
...
Diffstat (limited to 'kaldi_io/tools/convert_from_kaldi_pretrain.sh')
-rwxr-xr-xkaldi_io/tools/convert_from_kaldi_pretrain.sh4
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,