summaryrefslogtreecommitdiff
path: root/kaldi_io/tools/convert_from_kaldi_pretrain.sh
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2016-02-29 21:35:57 +0800
committerDeterminant <[email protected]>2016-02-29 21:35:57 +0800
commitd9e03b7d2c14549ab480d5e3b31518be4cdc8eed (patch)
treebe9507abe92f7e31e64507b4c4958f278cf64afa /kaldi_io/tools/convert_from_kaldi_pretrain.sh
parent534b039d297b9f2f83f889e2592686d79569e141 (diff)
add decode part to the nerv-kaldi tutorial
Diffstat (limited to 'kaldi_io/tools/convert_from_kaldi_pretrain.sh')
-rwxr-xr-xkaldi_io/tools/convert_from_kaldi_pretrain.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/kaldi_io/tools/convert_from_kaldi_pretrain.sh b/kaldi_io/tools/convert_from_kaldi_pretrain.sh
index dc8ec8e..78f532f 100755
--- a/kaldi_io/tools/convert_from_kaldi_pretrain.sh
+++ b/kaldi_io/tools/convert_from_kaldi_pretrain.sh
@@ -23,7 +23,6 @@ dir=$6
kaldi_to_nerv=$nerv_kaldi/tools/kaldi_to_nerv
mkdir $dir -p
mkdir $dir/log -p
-false && {
###### PREPARE DATASETS ######
cp $data/feats.scp $dir/train_sorted.scp
cp $data_cv/feats.scp $dir/cv.scp
@@ -42,10 +41,9 @@ nnet_init=$dir/nnet_output.init
nnet-initialize --binary=false $nnet_proto $nnet_init
###### MODEL PARAMETER CONVERSION ######
-$kaldi_to_nerv $nnet_init $dir/nnet_output.nerv
+$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,