diff --git a/examples/librispeech/asr2/conf/transformer.yaml b/examples/librispeech/asr2/conf/transformer.yaml index 4a50183a9c84ce1470966e833f163efe38a960e5..3e9350abc0f118e152132e8c45e579fb29cbdc8a 100644 --- a/examples/librispeech/asr2/conf/transformer.yaml +++ b/examples/librispeech/asr2/conf/transformer.yaml @@ -31,7 +31,7 @@ model: model_conf: ctc_weight: 0.3 ctc_dropoutrate: 0.0 - ctc_grad_norm_type: batch + ctc_grad_norm_type: null lsm_weight: 0.1 # label smoothing option length_normalized_loss: false diff --git a/examples/tiny/asr1/conf/chunk_confermer.yaml b/examples/tiny/asr1/conf/chunk_confermer.yaml index 6183a903bde34783a15dc58d9c3f5ce47b3553d7..728a82e3c8377b4a401dc5f4eb89820faa988df3 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 01d383fb82d01ceb424d1dad3d48a6c401e1ce82..7c927122b30ad3728d19bbc158c2d09c0d6d3873 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 a3fee6901df062e04e91f54f478910ef5c716a93..21cc112862438b46477895b4ad98e58ef075bdd8 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 5a87d6d245a36e30f50ced4c7777ff90ef1c9f28..f4645c681b8ba637ee9a9ca738d570321d81173e 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 d7df01eb71326f19ba1e8acc3adb7672df4d28b3..fe6ab51bca877ac2f8c3691b981e5eec31f7bbb4 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/$/\`/"