diff --git a/.bashrc b/.bashrc new file mode 100644 index 00000000..8abbb3c7 --- /dev/null +++ b/.bashrc @@ -0,0 +1,15 @@ +unset GREP_OPTIONS + +# https://zhuanlan.zhihu.com/p/33050965 +alias nvs='nvidia-smi' +alias his='history' +alias jobs='jobs -l' +alias ports='netstat -tulanp' +alias wget='wget -c' + +## Colorize the grep command output for ease of use (good for log files)## +alias grep='grep --color=auto' +alias egrep='egrep --color=auto' +alias fgrep='fgrep --color=auto' + + diff --git a/.gitignore b/.gitignore index 4ac2a36d..e4134a08 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ .ipynb_checkpoints *.npz *.done +*.whl tools/venv tools/kenlm diff --git a/README.md b/README.md index 424dc485..f7d1e088 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ## Setup * python>=3.7 -* paddlepaddle>=2.1.0 +* paddlepaddle>=2.1.2 Please see [install](doc/src/install.md). diff --git a/README_cn.md b/README_cn.md index d762ec2b..019b38c1 100644 --- a/README_cn.md +++ b/README_cn.md @@ -17,7 +17,7 @@ ## 安装 * python>=3.7 -* paddlepaddle>=2.1.0 +* paddlepaddle>=2.1.2 参看 [安装](doc/src/install.md)。 diff --git a/examples/aishell/s0/conf/deepspeech2.yaml b/examples/aishell/s0/conf/deepspeech2.yaml index 1c97fc60..c4ff246f 100644 --- a/examples/aishell/s0/conf/deepspeech2.yaml +++ b/examples/aishell/s0/conf/deepspeech2.yaml @@ -32,7 +32,7 @@ collator: keep_transcription_text: False sortagrad: True shuffle_method: batch_shuffle - num_workers: 0 + num_workers: 2 model: num_conv_layers: 2 diff --git a/examples/librispeech/s0/conf/deepspeech2.yaml b/examples/librispeech/s0/conf/deepspeech2.yaml index acee94c3..dab8d046 100644 --- a/examples/librispeech/s0/conf/deepspeech2.yaml +++ b/examples/librispeech/s0/conf/deepspeech2.yaml @@ -32,7 +32,7 @@ collator: keep_transcription_text: False sortagrad: True shuffle_method: batch_shuffle - num_workers: 0 + num_workers: 2 model: num_conv_layers: 2 diff --git a/examples/librispeech/s1/conf/conformer.yaml b/examples/librispeech/s1/conf/conformer.yaml index 955b6108..6d825f05 100644 --- a/examples/librispeech/s1/conf/conformer.yaml +++ b/examples/librispeech/s1/conf/conformer.yaml @@ -16,7 +16,7 @@ collator: spm_model_prefix: 'data/bpe_unigram_5000' mean_std_filepath: "" augmentation_config: conf/augmentation.json - batch_size: 16 + batch_size: 32 raw_wav: True # use raw_wav or kaldi feature specgram_type: fbank #linear, mfcc, fbank feat_dim: 80 @@ -78,7 +78,7 @@ model: training: n_epoch: 120 - accum_grad: 8 + accum_grad: 4 global_grad_clip: 3.0 optim: adam optim_conf: diff --git a/examples/librispeech/s1/conf/transformer.yaml b/examples/librispeech/s1/conf/transformer.yaml index 26188677..8a769dca 100644 --- a/examples/librispeech/s1/conf/transformer.yaml +++ b/examples/librispeech/s1/conf/transformer.yaml @@ -16,7 +16,7 @@ collator: spm_model_prefix: 'data/bpe_unigram_5000' mean_std_filepath: "" augmentation_config: conf/augmentation.json - batch_size: 32 + batch_size: 64 raw_wav: True # use raw_wav or kaldi feature specgram_type: fbank #linear, mfcc, fbank feat_dim: 80 @@ -73,7 +73,7 @@ model: training: n_epoch: 120 - accum_grad: 4 + accum_grad: 2 global_grad_clip: 5.0 optim: adam optim_conf: diff --git a/examples/tiny/s0/conf/deepspeech2.yaml b/examples/tiny/s0/conf/deepspeech2.yaml index ea433f34..ab9a00d9 100644 --- a/examples/tiny/s0/conf/deepspeech2.yaml +++ b/examples/tiny/s0/conf/deepspeech2.yaml @@ -32,7 +32,7 @@ collator: keep_transcription_text: False sortagrad: True shuffle_method: batch_shuffle - num_workers: 0 + num_workers: 2 batch_size: 4 model: diff --git a/examples/tiny/s1/conf/transformer.yaml b/examples/tiny/s1/conf/transformer.yaml index e97ad756..fd5adbde 100644 --- a/examples/tiny/s1/conf/transformer.yaml +++ b/examples/tiny/s1/conf/transformer.yaml @@ -14,7 +14,7 @@ collator: mean_std_filepath: "" vocab_filepath: data/vocab.txt unit_type: 'spm' - spm_model_prefix: 'data/bpe_unigram_202' + spm_model_prefix: 'data/bpe_unigram_200' augmentation_config: conf/augmentation.json batch_size: 4 raw_wav: True # use raw_wav or kaldi feature