Skip to content

Instantly share code, notes, and snippets.

@guoguo12
Last active June 8, 2016 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guoguo12/34abfbc0b886e8e27d1f5fa4d2c83b2d to your computer and use it in GitHub Desktop.
Save guoguo12/34abfbc0b886e8e27d1f5fa4d2c83b2d to your computer and use it in GitHub Desktop.
# in exp/nnet3/tdnn_sp_smbr/cmvn_opts
--norm-means=false --norm-vars=false
set -e
set +x
. cmd.sh
. path.sh
# regular MFCCs
mfccdir=mfcc
for dataset in eval2000; do
steps/make_mfcc.sh --cmd "$train_cmd" --nj 10 --mfcc-config conf/mfcc.conf \
data/${dataset} exp/make_mfcc/$dataset $mfccdir;
steps/compute_cmvn_stats.sh data/${dataset} exp/make_mfcc/$dataset $mfccdir;
utils/fix_data_dir.sh data/${dataset} # remove segments with problems
done
# hi-res MFCCs
for dataset in eval2000; do
utils/copy_data_dir.sh data/$dataset data/${dataset}_hires
steps/make_mfcc.sh --cmd "$train_cmd" --nj 10 --mfcc-config conf/mfcc_hires.conf \
data/${dataset}_hires exp/make_hires/$dataset $mfccdir;
steps/compute_cmvn_stats.sh data/${dataset}_hires exp/make_hires/$dataset $mfccdir;
utils/fix_data_dir.sh data/${dataset}_hires # remove segments with problems
done
# ivectors
for data_set in eval2000; do
steps/online/nnet2/extract_ivectors_online.sh --cmd "$train_cmd" --nj 24 \
data/${data_set}_hires exp/nnet3/extractor exp/nnet3/ivectors_$data_set || exit 1;
done
# decode
dir=exp/nnet3/tdnn_sp_smbr
graph_dir=exp/nnet3/tdnn_sp_smbr/graph_fsh_sw1_tg/ # copied from a prior fisher_swbd experiment
for decode_set in eval2000; do
#num_jobs=`cat data/${decode_set}_hires/utt2spk|cut -d' ' -f2|sort -u|wc -l`
num_jobs=1
steps/nnet3/decode.sh --nj $num_jobs --cmd "$decode_cmd" \
--online-ivector-dir exp/nnet3/ivectors_${decode_set} \
$graph_dir data/${decode_set}_hires $dir/decode_${decode_set}_fsh_sw1_tg || exit 1;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment