未验证 提交 cd2e8d35 编写于 作者: J Jackwaterveg 提交者: GitHub

Merge pull request #1062 from zh794390558/conf

[bugfix] fix tiny conf and librispeech asr2 ctc grad norm conf
...@@ -31,7 +31,7 @@ model: ...@@ -31,7 +31,7 @@ model:
model_conf: model_conf:
ctc_weight: 0.3 ctc_weight: 0.3
ctc_dropoutrate: 0.0 ctc_dropoutrate: 0.0
ctc_grad_norm_type: batch ctc_grad_norm_type: null
lsm_weight: 0.1 # label smoothing option lsm_weight: 0.1 # label smoothing option
length_normalized_loss: false length_normalized_loss: false
......
...@@ -14,7 +14,7 @@ collator: ...@@ -14,7 +14,7 @@ collator:
mean_std_filepath: "" mean_std_filepath: ""
vocab_filepath: data/lang_char/vocab.txt vocab_filepath: data/lang_char/vocab.txt
unit_type: 'spm' unit_type: 'spm'
spm_model_prefix: 'data/bpe_unigram_200' spm_model_prefix: 'data/lang_char/bpe_unigram_200'
augmentation_config: conf/preprocess.yaml augmentation_config: conf/preprocess.yaml
batch_size: 4 batch_size: 4
raw_wav: True # use raw_wav or kaldi feature raw_wav: True # use raw_wav or kaldi feature
......
...@@ -14,7 +14,7 @@ collator: ...@@ -14,7 +14,7 @@ collator:
mean_std_filepath: "" mean_std_filepath: ""
vocab_filepath: data/lang_char/vocab.txt vocab_filepath: data/lang_char/vocab.txt
unit_type: 'spm' unit_type: 'spm'
spm_model_prefix: 'data/bpe_unigram_200' spm_model_prefix: 'data/lang_char/bpe_unigram_200'
augmentation_config: conf/preprocess.yaml augmentation_config: conf/preprocess.yaml
batch_size: 4 batch_size: 4
raw_wav: True # use raw_wav or kaldi feature raw_wav: True # use raw_wav or kaldi feature
......
...@@ -14,7 +14,7 @@ collator: ...@@ -14,7 +14,7 @@ collator:
mean_std_filepath: "" mean_std_filepath: ""
vocab_filepath: data/lang_char/vocab.txt vocab_filepath: data/lang_char/vocab.txt
unit_type: 'spm' unit_type: 'spm'
spm_model_prefix: 'data/bpe_unigram_200' spm_model_prefix: 'data/lang_char/bpe_unigram_200'
augmentation_config: conf/preprocess.yaml augmentation_config: conf/preprocess.yaml
batch_size: 4 batch_size: 4
raw_wav: True # use raw_wav or kaldi feature raw_wav: True # use raw_wav or kaldi feature
......
...@@ -14,7 +14,7 @@ collator: ...@@ -14,7 +14,7 @@ collator:
mean_std_filepath: data/mean_std.json mean_std_filepath: data/mean_std.json
vocab_filepath: data/lang_char/vocab.txt vocab_filepath: data/lang_char/vocab.txt
unit_type: 'spm' unit_type: 'spm'
spm_model_prefix: 'data/bpe_unigram_200' spm_model_prefix: 'data/lang_char/bpe_unigram_200'
augmentation_config: conf/preprocess.yaml augmentation_config: conf/preprocess.yaml
batch_size: 4 batch_size: 4
raw_wav: True # use raw_wav or kaldi feature raw_wav: True # use raw_wav or kaldi feature
......
...@@ -82,12 +82,12 @@ if [ -e ${e2e} ]; then ...@@ -82,12 +82,12 @@ if [ -e ${e2e} ]; then
e2e_conf=$(dirname ${e2e})/model.json e2e_conf=$(dirname ${e2e})/model.json
if [ ! -e ${e2e_conf} ]; then if [ ! -e ${e2e_conf} ]; then
echo missing ${e2e_conf} echo missing ${e2e_conf}
#exit 1 #exit 1
else else
echo -n " - e2e JSON file: \`" echo -n " - e2e JSON file: \`"
echo ${e2e_conf} | sed -e "s/$/\`/" echo ${e2e_conf} | sed -e "s/$/\`/"
tar rfh ${outfile}.tar ${e2e_conf} tar rfh ${outfile}.tar ${e2e_conf}
fi fi
else else
echo "missing ${e2e}" echo "missing ${e2e}"
...@@ -104,7 +104,7 @@ if [ -n "${lm}" ]; then ...@@ -104,7 +104,7 @@ if [ -n "${lm}" ]; then
lm_conf=$(dirname ${lm})/model.json lm_conf=$(dirname ${lm})/model.json
if [ ! -e ${lm_conf} ]; then if [ ! -e ${lm_conf} ]; then
echo missing ${lm_conf} echo missing ${lm_conf}
exit 1 #exit 1
else else
echo -n " - lm JSON file: \`" echo -n " - lm JSON file: \`"
echo ${lm_conf} | sed -e "s/$/\`/" echo ${lm_conf} | sed -e "s/$/\`/"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册