Commit 0150d9ac by xuchen

modify the run.sh

parent 42321f76
...@@ -82,7 +82,7 @@ if [[ -z ${exp_name} ]]; then ...@@ -82,7 +82,7 @@ if [[ -z ${exp_name} ]]; then
fi fi
fi fi
model_dir=$root_dir/../checkpoints/$dataset/$task/asr/${exp_name} model_dir=$root_dir/../checkpoints/$dataset/asr/${exp_name}
if [ ${stage} -le -1 ] && [ ${stop_stage} -ge -1 ]; then if [ ${stage} -le -1 ] && [ ${stop_stage} -ge -1 ]; then
echo "stage -1: Data Download" echo "stage -1: Data Download"
......
...@@ -255,9 +255,10 @@ if [ ${stage} -le 2 ] && [ ${stop_stage} -ge 2 ]; then ...@@ -255,9 +255,10 @@ if [ ${stage} -le 2 ] && [ ${stop_stage} -ge 2 ]; then
[[ -f ${result_file} ]] && rm ${result_file} [[ -f ${result_file} ]] && rm ${result_file}
for subset in ${test_subset[@]}; do for subset in ${test_subset[@]}; do
subset=${subset}_st
cmd="python ${root_dir}/fairseq_cli/generate.py cmd="python ${root_dir}/fairseq_cli/generate.py
${data_dir}/$lang ${data_dir}
--source-lang ${src_lang}
--target-lang ${tgt_lang}
--config-yaml ${data_config} --config-yaml ${data_config}
--gen-subset ${subset} --gen-subset ${subset}
--task ${task} --task ${task}
......
...@@ -90,7 +90,7 @@ if [[ -z ${exp_name} ]]; then ...@@ -90,7 +90,7 @@ if [[ -z ${exp_name} ]]; then
fi fi
fi fi
model_dir=$root_dir/../checkpoints/$dataset/$task/st/${exp_name} model_dir=$root_dir/../checkpoints/$dataset/st/${exp_name}
if [ ${stage} -le -1 ] && [ ${stop_stage} -ge -1 ]; then if [ ${stage} -le -1 ] && [ ${stop_stage} -ge -1 ]; then
echo "stage -1: Data Download" echo "stage -1: Data Download"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论