Skip to content

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

cer tool

游雁d3e785f6ab29
diff --git a/funasr/runtime/python/utils/infer.sh b/funasr/runtime/python/utils/infer.sh
index c434f4a47..c9a1b775b 100644
--- a/funasr/runtime/python/utils/infer.sh
+++ b/funasr/runtime/python/utils/infer.sh
@@ -17,7 +17,8 @@ export_root="/nfs/zhifu.gzf/export"
model_name="damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch"
backend="onnx" # "torch"
quantize='true' # 'False'
-tag=${model_name}/${backend}_quantize_${quantize}
+fallback_op_num_torch=20
+tag=${model_name}/${backend}_quantize_${quantize}_${fallback_op_num_torch}
!
output_dir=${export_root}/logs/${tag}/split$nj
@@ -27,7 +28,7 @@ echo ${output_dir}
if [ $stage -le 0 ] && [ $stop_stage -ge 0 ];then
- python -m funasr.export.export_model --model-name ${model_name} --export-dir ${export_root} --type ${backend} --quantize ${quantize} --audio_in ${scp}
+ python -m funasr.export.export_model --model-name ${model_name} --export-dir ${export_root} --type ${backend} --quantize ${quantize} --audio_in ${scp} --fallback-num ${fallback_op_num_torch}
fi