Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
bcfe3f8
[src] Change warp-synchronous to cub::BlockReduce (safer but slower) …
desh2608 Mar 10, 2019
1209c07
[src] Fix && and || uses where & and | intended, and other weird erro…
kkm000 Mar 11, 2019
5a5696f
[build] Some fixes to Makefiles (#3088)
kkm000 Mar 11, 2019
abd4869
[src] Fixed -Wreordered warnings in feat (#3090)
pzelasko Mar 12, 2019
9c8ba0f
[egs] Replace bc with perl -e (#3093)
entn-at Mar 12, 2019
8cbd582
[scripts] Fix python3 compatibility issue in data-perturbing script (…
nikhilm16 Mar 12, 2019
7435661
[doc] fix some typos in doc. (#3097)
csukuangfj Mar 12, 2019
5bdea69
[build] Make sure expf() speed probe times sensibly (#3089)
kkm000 Mar 12, 2019
b7a4fec
[scripts] Make sure merge_targets.py works in python3 (#3094)
XIAOYixuan Mar 12, 2019
94475d6
[src] ifdef to fix compilation failure on CUDA 8 and earlier (#3103)
desh2608 Mar 13, 2019
fc8c17b
[doc] fix typos and broken links in doc. (#3102)
csukuangfj Mar 13, 2019
3f8b6b2
[scripts] Fix frame_shift bug in egs/swbd/s5c/local/score_sclite_conf…
freewym Mar 13, 2019
072e64b
resolved conflicts
desh2608 Mar 13, 2019
633e61c
[src] Fix wrong assertion failure in nnet3-am-compute (#3106)
MartinKocour Mar 14, 2019
8cafd32
[src] Cosmetic changes to natural-gradient code (#3108)
danpovey Mar 14, 2019
b1b230c
[src,scripts] Python2 compatibility fixes and code cleanup for nnet1 …
KarelVesely84 Mar 14, 2019
9c875ef
[doc] Small documentation fixes; update on Kaldi history (#3031)
KarelVesely84 Mar 14, 2019
7a1908f
[src] Various mostly-cosmetic changes (copying from another branch) (…
danpovey Mar 15, 2019
7ac2063
Merge branch 'kaldi10' of https://github.com/kaldi-asr/kaldi into kal…
desh2608 Mar 15, 2019
535a619
resolved new merge conflicts
desh2608 Mar 15, 2019
fa46b15
Merge branch 'kaldi10' of https://github.com/kaldi-asr/kaldi into kal…
desh2608 Mar 15, 2019
fcd70d3
[scripts] Simplify text encoding in RNNLM scripts (now only support …
saikiranvalluri Mar 16, 2019
b4c7ab6
[egs] Add "formosa_speech" recipe (Taiwanese Mandarin ASR) (#2474)
yfliao Mar 16, 2019
461b50c
[egs] python3 compatibility in csj example script (#3123)
rickychanhoyin Mar 16, 2019
61637e6
[egs] python3 compatibility in example scripts (#3126)
danpovey Mar 17, 2019
1f068cd
[scripts] Bug-fix for removing deleted words (#3116)
psmit Mar 17, 2019
4ca53e1
Merge branch 'kaldi10' of https://github.com/kaldi-asr/kaldi into kal…
desh2608 Mar 17, 2019
baa06f6
Merge branch 'master' of https://github.com/kaldi-asr/kaldi into kaldi10
desh2608 Mar 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/chain/tuning/run_tdnn_1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if [ $stage -le 10 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $treedir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell/s5/local/chain/tuning/run_tdnn_2a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ if [ $stage -le 10 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $treedir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/chain/tuning/run_tdnn_1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fi
if [ $stage -le 10 ]; then
echo "$0: creating neural net configs using the xconfig parser";
num_targets=$(tree-info $treedir/tree | grep num-pdfs | awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
opts="l2-regularize=0.002"
linear_opts="orthonormal-constraint=1.0"
output_opts="l2-regularize=0.0005 bottleneck-dim=256"
Expand Down
2 changes: 1 addition & 1 deletion egs/aishell2/s5/local/chain/tuning/run_tdnn_1b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ if [ $stage -le 10 ]; then
echo "$0: creating neural net configs using the xconfig parser";
feat_dim=$(feat-to-dim scp:data/${train_set}_hires/feats.scp -)
num_targets=$(tree-info $treedir/tree | grep num-pdfs | awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
opts="l2-regularize=0.002"
linear_opts="orthonormal-constraint=1.0"
output_opts="l2-regularize=0.0005 bottleneck-dim=256"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
affine_opts="l2-regularize=0.01 dropout-proportion=0.0 dropout-per-dim=true dropout-per-dim-continuous=true"
tdnnf_opts="l2-regularize=0.01 dropout-proportion=0.0 bypass-scale=0.66"
linear_opts="l2-regularize=0.01 orthonormal-constraint=-1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
tdnn_opts="l2-regularize=0.006"
lstm_opts="l2-regularize=0.0025 decay-time=20 dropout-proportion=0.0"
output_opts="l2-regularize=0.001"
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

lstm_opts="decay-time=20"

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

lstm_opts="decay-time=20 dropout-proportion=0"

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_cnn_tdnn_lstm_1c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

lstm_opts="decay-time=40"

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_1b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_1c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_1d.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_1e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_1f.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_1g.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_1h.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_1i.sh
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
opts="l2-regularize=0.02"
output_opts="l2-regularize=0.004"

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1d.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1f.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1g.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1h.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1i.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1j.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

lstm_opts="decay-time=20"

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1k.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

lstm_opts="decay-time=20"

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1l.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1m.sh
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

lstm_opts="decay-time=20 dropout-proportion=0.0"

Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1n.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_1o.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
tdnn_opts="l2-regularize=0.025"
lstm_opts="l2-regularize=0.01"
output_opts="l2-regularize=0.004"
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_lstm_bs_1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
tdnn_opts="l2-regularize=0.003"
lstm_opts="l2-regularize=0.005"
output_opts="l2-regularize=0.001"
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
gru_opts="dropout-per-frame=true dropout-proportion=0.0"

mkdir -p $dir/configs
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
gru_opts="dropout-per-frame=true dropout-proportion=0.0"

mkdir -p $dir/configs
Expand Down
2 changes: 1 addition & 1 deletion egs/ami/s5b/local/chain/tuning/run_tdnn_opgru_1c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ if [ $stage -le 15 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
gru_opts="dropout-per-frame=true dropout-proportion=0.0"

mkdir -p $dir/configs
Expand Down
2 changes: 1 addition & 1 deletion egs/aspire/s5/local/chain/tuning/run_blstm_7b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ if [ $stage -le 11 ]; then

num_targets=$(tree-info $treedir/tree | grep num-pdfs | awk '{print $2}')
[ -z $num_targets ] && { echo "$0: error getting num-targets"; exit 1; }
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

lstm_opts="decay-time=20"

Expand Down
2 changes: 1 addition & 1 deletion egs/aspire/s5/local/chain/tuning/run_tdnn_7b.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ if [ $stage -le 11 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $treedir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/aspire/s5/local/chain/tuning/run_tdnn_lstm_1a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ if [ $stage -le 12 ]; then
echo "$0: creating neural net configs using the xconfig parser";

num_targets=$(tree-info $treedir/tree |grep num-pdfs|awk '{print $2}')
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

lstm_opts="decay-time=40"

Expand Down
2 changes: 1 addition & 1 deletion egs/babel/s5d/local/chain/tuning/run_tdnn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ if [ $stage -le 17 ]; then

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
[ -z $num_targets ] && { echo "$0: error getting num-targets"; exit 1; }
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)

mkdir -p $dir/configs
cat <<EOF > $dir/configs/network.xconfig
Expand Down
2 changes: 1 addition & 1 deletion egs/babel/s5d/local/chain/tuning/run_tdnn_lstm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ if [ $stage -le 17 ]; then

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
[ -z $num_targets ] && { echo "$0: error getting num-targets"; exit 1; }
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
lstm_opts="decay-time=20"
label_delay=5

Expand Down
2 changes: 1 addition & 1 deletion egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ if [ $stage -le 17 ]; then

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
[ -z $num_targets ] && { echo "$0: error getting num-targets"; exit 1; }
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
lstm_opts="decay-time=20"
label_delay=5

Expand Down
2 changes: 1 addition & 1 deletion egs/babel/s5d/local/chain/tuning/run_tdnn_lstm_bab2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ if [ $stage -le 17 ]; then

num_targets=$(tree-info $tree_dir/tree |grep num-pdfs|awk '{print $2}')
[ -z $num_targets ] && { echo "$0: error getting num-targets"; exit 1; }
learning_rate_factor=$(echo "print 0.5/$xent_regularize" | python)
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)
lstm_opts="decay-time=20"
label_delay=5

Expand Down
Loading