Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

update

游雁6c8e8397424b
diff --git a/examples/aishell/conformer/run.sh b/examples/aishell/conformer/run.sh
index 947cc02e3..28e6f90a1 100755
--- a/examples/aishell/conformer/run.sh
+++ b/examples/aishell/conformer/run.sh
@@ -109,14 +109,9 @@ if [ ${stage} -le 4 ] && [ ${stop_stage} -ge 4 ]; then
echo "log_file: ${log_file}"
gpu_num=$(echo CUDA_VISIBLE_DEVICES | awk -F "," '{print NF}')
-# torchrun \
-# --nnodes 1 \
-# --nproc_per_node ${gpu_num}
- cmd="python"
- if [ ${gpu_num} -gt 1 ];then
- cmd="torchrun --nnodes 1 --nproc_per_node ${gpu_num}"
- fi
- ${cmd} \
+ torchrun \
+ --nnodes 1 \
+ --nproc_per_node ${gpu_num} \
../../../funasr/bin/train.py \
--config-path "${workspace}/conf" \
--config-name "${config}" \
diff --git a/funasr/models/transformer/model.py b/funasr/models/transformer/model.py
index e813e2205..a92f5af2f 100644
--- a/funasr/models/transformer/model.py
+++ b/funasr/models/transformer/model.py
@@ -118,6 +118,7 @@ class Transformer(nn.Module):
# token_list, sym_space, sym_blank, report_cer, report_wer
# )
#
+ self.error_calculator = None
if ctc_weight == 0.0:
self.ctc = None
else: