diff --git a/examples/timit/README.md b/examples/timit/s1/README.md similarity index 100% rename from examples/timit/README.md rename to examples/timit/s1/README.md diff --git a/examples/timit/conf/augmentation.json b/examples/timit/s1/conf/augmentation.json similarity index 100% rename from examples/timit/conf/augmentation.json rename to examples/timit/s1/conf/augmentation.json diff --git a/examples/timit/conf/dev_spk.list b/examples/timit/s1/conf/dev_spk.list similarity index 100% rename from examples/timit/conf/dev_spk.list rename to examples/timit/s1/conf/dev_spk.list diff --git a/examples/timit/conf/phones.60-48-39.map b/examples/timit/s1/conf/phones.60-48-39.map similarity index 100% rename from examples/timit/conf/phones.60-48-39.map rename to examples/timit/s1/conf/phones.60-48-39.map diff --git a/examples/timit/conf/test_spk.list b/examples/timit/s1/conf/test_spk.list similarity index 100% rename from examples/timit/conf/test_spk.list rename to examples/timit/s1/conf/test_spk.list diff --git a/examples/timit/conf/transformer.yaml b/examples/timit/s1/conf/transformer.yaml similarity index 98% rename from examples/timit/conf/transformer.yaml rename to examples/timit/s1/conf/transformer.yaml index 131173ce50e576889ba9c2fa5a5531b3df850b56..eb191d0b25f703c4e95aa79b750fcdaf8962be41 100644 --- a/examples/timit/conf/transformer.yaml +++ b/examples/timit/s1/conf/transformer.yaml @@ -76,11 +76,11 @@ training: global_grad_clip: 5.0 optim: adam optim_conf: - lr: 0.004 + lr: 0.002 weight_decay: 1e-06 scheduler: warmuplr # pytorch v1.1.0+ required scheduler_conf: - warmup_steps: 25000 + warmup_steps: 400 lr_decay: 1.0 log_interval: 100 checkpoint: diff --git a/examples/timit/local/align.sh b/examples/timit/s1/local/align.sh similarity index 100% rename from examples/timit/local/align.sh rename to examples/timit/s1/local/align.sh diff --git a/examples/timit/local/data.sh b/examples/timit/s1/local/data.sh similarity index 100% rename from examples/timit/local/data.sh rename to examples/timit/s1/local/data.sh diff --git a/examples/timit/local/export.sh b/examples/timit/s1/local/export.sh similarity index 100% rename from examples/timit/local/export.sh rename to examples/timit/s1/local/export.sh diff --git a/examples/timit/local/test.sh b/examples/timit/s1/local/test.sh similarity index 100% rename from examples/timit/local/test.sh rename to examples/timit/s1/local/test.sh diff --git a/examples/timit/local/timit_data_prep.sh b/examples/timit/s1/local/timit_data_prep.sh similarity index 91% rename from examples/timit/local/timit_data_prep.sh rename to examples/timit/s1/local/timit_data_prep.sh index 22e6f343e7fe2f8278b85a37de69ef32616c64c8..4bea057d004af45e04b7e1e38ffbadb7ab764dc2 100644 --- a/examples/timit/local/timit_data_prep.sh +++ b/examples/timit/s1/local/timit_data_prep.sh @@ -15,8 +15,13 @@ local=`pwd`/local utils=`pwd`/utils conf=`pwd`/conf -[ -f $conf/test_spk.list ] || error_exit "$PROG: Eval-set speaker list not found."; -[ -f $conf/dev_spk.list ] || error_exit "$PROG: dev-set speaker list not found."; +function error_exit () { + echo -e "$@" >&2; exit 1; +} +PROG=$(basename $0) + +[ -f $conf/test_spk.list ] || error_exit "$PROG line $LINENO: Eval-set speaker list not found."; +[ -f $conf/dev_spk.list ] || error_exit "$PROG line $LINENO: dev-set speaker list not found."; # First check if the train & test directories exist (these can either be upper- # or lower-cased diff --git a/examples/timit/local/timit_norm_trans.pl b/examples/timit/s1/local/timit_norm_trans.pl similarity index 100% rename from examples/timit/local/timit_norm_trans.pl rename to examples/timit/s1/local/timit_norm_trans.pl diff --git a/examples/timit/local/train.sh b/examples/timit/s1/local/train.sh similarity index 100% rename from examples/timit/local/train.sh rename to examples/timit/s1/local/train.sh diff --git a/examples/timit/path.sh b/examples/timit/s1/path.sh similarity index 90% rename from examples/timit/path.sh rename to examples/timit/s1/path.sh index 9542727768e89e60122b53cb0eacf1b960f0d985..a632babe405806b5d04ed8859d0c65cfa397076c 100644 --- a/examples/timit/path.sh +++ b/examples/timit/s1/path.sh @@ -1,4 +1,4 @@ -export MAIN_ROOT=${PWD}/../../ +export MAIN_ROOT=${PWD}/../../../ export PATH=${MAIN_ROOT}:${MAIN_ROOT}/utils:${PATH} export LC_ALL=C diff --git a/examples/timit/run.sh b/examples/timit/s1/run.sh similarity index 93% rename from examples/timit/run.sh rename to examples/timit/s1/run.sh index d2b7f362d22afef4dfaaa35d4aa966000a1c9781..67ce78377a4752546cfff1704ad00b1ae9997a76 100755 --- a/examples/timit/run.sh +++ b/examples/timit/s1/run.sh @@ -6,7 +6,7 @@ stage=0 stop_stage=50 conf_path=conf/transformer.yaml avg_num=10 -TIMIT_path= +TIMIT_path= #path of TIMIT (Required, e.g. /export/corpora5/LDC/LDC93S1/timit/TIMIT) source ${MAIN_ROOT}/utils/parse_options.sh || exit 1; avg_ckpt=avg_${avg_num}