From 5d626aa6b486d0b888c6adf6906ee1311ff73eac Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Wed, 1 Dec 2021 02:17:30 +0000 Subject: [PATCH] fix tiny conf --- examples/tiny/asr1/conf/chunk_confermer.yaml | 2 +- examples/tiny/asr1/conf/chunk_transformer.yaml | 2 +- examples/tiny/asr1/conf/conformer.yaml | 2 +- examples/tiny/asr1/conf/transformer.yaml | 2 +- utils/pack_model.sh | 12 ++++++------ 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/tiny/asr1/conf/chunk_confermer.yaml b/examples/tiny/asr1/conf/chunk_confermer.yaml index 6183a903..728a82e3 100644 --- a/examples/tiny/asr1/conf/chunk_confermer.yaml +++ b/examples/tiny/asr1/conf/chunk_confermer.yaml @@ -14,7 +14,7 @@ collator: mean_std_filepath: "" vocab_filepath: data/lang_char/vocab.txt unit_type: 'spm' - spm_model_prefix: 'data/bpe_unigram_200' + spm_model_prefix: 'data/lang_char/bpe_unigram_200' augmentation_config: conf/preprocess.yaml batch_size: 4 raw_wav: True # use raw_wav or kaldi feature diff --git a/examples/tiny/asr1/conf/chunk_transformer.yaml b/examples/tiny/asr1/conf/chunk_transformer.yaml index 01d383fb..7c927122 100644 --- a/examples/tiny/asr1/conf/chunk_transformer.yaml +++ b/examples/tiny/asr1/conf/chunk_transformer.yaml @@ -14,7 +14,7 @@ collator: mean_std_filepath: "" vocab_filepath: data/lang_char/vocab.txt unit_type: 'spm' - spm_model_prefix: 'data/bpe_unigram_200' + spm_model_prefix: 'data/lang_char/bpe_unigram_200' augmentation_config: conf/preprocess.yaml batch_size: 4 raw_wav: True # use raw_wav or kaldi feature diff --git a/examples/tiny/asr1/conf/conformer.yaml b/examples/tiny/asr1/conf/conformer.yaml index a3fee690..21cc1128 100644 --- a/examples/tiny/asr1/conf/conformer.yaml +++ b/examples/tiny/asr1/conf/conformer.yaml @@ -14,7 +14,7 @@ collator: mean_std_filepath: "" vocab_filepath: data/lang_char/vocab.txt unit_type: 'spm' - spm_model_prefix: 'data/bpe_unigram_200' + spm_model_prefix: 'data/lang_char/bpe_unigram_200' augmentation_config: conf/preprocess.yaml batch_size: 4 raw_wav: True # use raw_wav or kaldi feature diff --git a/examples/tiny/asr1/conf/transformer.yaml b/examples/tiny/asr1/conf/transformer.yaml index 5a87d6d2..f4645c68 100644 --- a/examples/tiny/asr1/conf/transformer.yaml +++ b/examples/tiny/asr1/conf/transformer.yaml @@ -14,7 +14,7 @@ collator: mean_std_filepath: data/mean_std.json vocab_filepath: data/lang_char/vocab.txt unit_type: 'spm' - spm_model_prefix: 'data/bpe_unigram_200' + spm_model_prefix: 'data/lang_char/bpe_unigram_200' augmentation_config: conf/preprocess.yaml batch_size: 4 raw_wav: True # use raw_wav or kaldi feature diff --git a/utils/pack_model.sh b/utils/pack_model.sh index d7df01eb..fe6ab51b 100755 --- a/utils/pack_model.sh +++ b/utils/pack_model.sh @@ -82,12 +82,12 @@ if [ -e ${e2e} ]; then e2e_conf=$(dirname ${e2e})/model.json if [ ! -e ${e2e_conf} ]; then - echo missing ${e2e_conf} - #exit 1 + echo missing ${e2e_conf} + #exit 1 else - echo -n " - e2e JSON file: \`" - echo ${e2e_conf} | sed -e "s/$/\`/" - tar rfh ${outfile}.tar ${e2e_conf} + echo -n " - e2e JSON file: \`" + echo ${e2e_conf} | sed -e "s/$/\`/" + tar rfh ${outfile}.tar ${e2e_conf} fi else echo "missing ${e2e}" @@ -104,7 +104,7 @@ if [ -n "${lm}" ]; then lm_conf=$(dirname ${lm})/model.json if [ ! -e ${lm_conf} ]; then echo missing ${lm_conf} - exit 1 + #exit 1 else echo -n " - lm JSON file: \`" echo ${lm_conf} | sed -e "s/$/\`/"