嘉渊 2 lat temu
rodzic
commit
8f50a4cc49

+ 0 - 2
egs/aishell/paraformer/conf/train_asr_paraformer_conformer_12e_6d_2048_256.yaml

@@ -1,6 +1,4 @@
 # network architecture
-# task related
-task_name: asr
 # encoder related
 encoder: conformer
 encoder_conf:

+ 1 - 0
egs/aishell/paraformer/run.sh

@@ -162,6 +162,7 @@ if [ ${stage} -le 3 ] && [ ${stop_stage} -ge 3 ]; then
             local_rank=$i
             gpu_id=$(echo $CUDA_VISIBLE_DEVICES | cut -d',' -f$[$i+1])
             train.py \
+                --task_name asr \
                 --gpu_id $gpu_id \
                 --use_preprocessor true \
                 --token_type char \

+ 1 - 1
funasr/build_utils/build_args.py

@@ -88,5 +88,5 @@ def build_args(args, parser, extra_task_params):
         if not any(action.dest == a.dest for a in task_parser._actions):
             task_parser._add_action(action)
 
-    task_args = parser.parse_args(extra_task_params)
+    task_args = task_parser.parse_args(extra_task_params)
     return task_args