From 6c1d9afd5de39b38442c3ec1f8427e5a59c6213e Mon Sep 17 00:00:00 2001 From: 嘉渊 <wangjiaming.wjm@alibaba-inc.com> Date: 星期二, 23 五月 2023 19:51:08 +0800 Subject: [PATCH] update repo --- docs/academic_recipe/asr_recipe.md | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/academic_recipe/asr_recipe.md b/docs/academic_recipe/asr_recipe.md index a152a40..cedec60 100644 --- a/docs/academic_recipe/asr_recipe.md +++ b/docs/academic_recipe/asr_recipe.md @@ -13,7 +13,14 @@ conda activate funasr . ./run.sh ``` -The training log files are saved in `exp/*_train_*/log/train.log.*` and the inference results are saved in `exp/*_train_*/decode_asr_*`. +The training log files are saved in `exp/*_train_*/log/train.log.*`锛� which can be viewed using the following command: +```sh +vim exp/*_train_*/log/train.log.0 +``` +It should be looked like as follows: + + +and the inference results are saved in `exp/*_train_*/decode_asr_*`. ## Introduction We provide a recipe `egs/aishell/paraformer/run.sh` for training a paraformer model on AISHELL-1 dataset. This recipe consists of five stages, supporting training on multiple GPUs and decoding by CPU or GPU. Before introducing each stage in detail, we first explain several parameters which should be set by users. @@ -47,7 +54,7 @@ These two files both have two columns, while the first column is wav ids and the second column is the corresponding wav paths/label tokens. ### Stage 1: Feature and CMVN Generation -This stage computes CMVN based on `train` dataset, which is used in the following stages. Users can set `nj` to control the number of jobs for computing CMVN. The generated CMVN file is saved as `$feats_dir/data/train/cmvn/cmvn.mvn`. +This stage computes CMVN based on `train` dataset, which is used in the following stages. Users can set `nj` to control the number of jobs for computing CMVN. The generated CMVN file is saved as `$feats_dir/data/train/cmvn/am.mvn`. ### Stage 2: Dictionary Preparation This stage processes the dictionary, which is used as a mapping between label characters and integer indices during ASR training. The processed dictionary file is saved as `$feats_dir/data/$lang_toekn_list/$token_type/tokens.txt`. An example of `tokens.txt` is as follows: @@ -167,4 +174,4 @@ * Decoding by CPU or GPU -We support CPU and GPU decoding. For CPU decoding, \ No newline at end of file +We support CPU and GPU decoding. For CPU decoding, set `gpu_inference=false` and `njob` to specific the total number of CPU jobs. For GPU decoding, first set `gpu_inference=true`. Then set `gpuid_list` to specific which GPUs for decoding and `njob` to specific the number of decoding jobs on each GPU. \ No newline at end of file -- Gitblit v1.9.1