From 3dc499dbdcaa5033c5127b5a26578a81d6f4521a Mon Sep 17 00:00:00 2001 From: 游雁 <zhifu.gzf@alibaba-inc.com> Date: 星期二, 25 四月 2023 11:29:03 +0800 Subject: [PATCH] test_cer --- funasr/runtime/python/utils/test_cer.sh | 2 +- funasr/runtime/python/benchmark_libtorch.md | 8 +++++++- funasr/runtime/python/benchmark_onnx.md | 8 +++++++- funasr/runtime/python/utils/test_cer.py | 0 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/funasr/runtime/python/benchmark_libtorch.md b/funasr/runtime/python/benchmark_libtorch.md index 52927b1..2aafe25 100644 --- a/funasr/runtime/python/benchmark_libtorch.md +++ b/funasr/runtime/python/benchmark_libtorch.md @@ -22,12 +22,18 @@ #### Recipe +##### test_rtf set the model, data path and output_dir - ```shell nohup bash test_rtf.sh &> log.txt & ``` +##### test_cer +set the model, data path and output_dir +```shell +nohup bash test_cer.sh &> log.txt & +``` + ## [Paraformer-large](https://www.modelscope.cn/models/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/summary) diff --git a/funasr/runtime/python/benchmark_onnx.md b/funasr/runtime/python/benchmark_onnx.md index ffae8f9..2863ff8 100644 --- a/funasr/runtime/python/benchmark_onnx.md +++ b/funasr/runtime/python/benchmark_onnx.md @@ -22,12 +22,18 @@ #### Recipe -set the model, data path and output_dir +##### test_rtf +set the model, data path and output_dir ```shell nohup bash test_rtf.sh &> log.txt & ``` +##### test_cer +set the model, data path and output_dir +```shell +nohup bash test_cer.sh &> log.txt & +``` ## [Paraformer-large](https://www.modelscope.cn/models/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/summary) diff --git a/funasr/runtime/python/utils/infer.py b/funasr/runtime/python/utils/test_cer.py similarity index 100% rename from funasr/runtime/python/utils/infer.py rename to funasr/runtime/python/utils/test_cer.py diff --git a/funasr/runtime/python/utils/infer.sh b/funasr/runtime/python/utils/test_cer.sh similarity index 98% rename from funasr/runtime/python/utils/infer.sh rename to funasr/runtime/python/utils/test_cer.sh index c9a1b77..da4cd08 100644 --- a/funasr/runtime/python/utils/infer.sh +++ b/funasr/runtime/python/utils/test_cer.sh @@ -1,6 +1,6 @@ split_scps_tool=split_scp.pl -inference_tool=infer.py +inference_tool=test_cer.py proce_text_tool=proce_text.py compute_wer_tool=compute_wer.py -- Gitblit v1.9.1