From 3dc499dbdcaa5033c5127b5a26578a81d6f4521a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E9=9B=81?= Date: Tue, 25 Apr 2023 11:29:03 +0800 Subject: [PATCH] test_cer --- funasr/runtime/python/benchmark_libtorch.md | 8 +++++++- funasr/runtime/python/benchmark_onnx.md | 8 +++++++- funasr/runtime/python/utils/{infer.py => test_cer.py} | 0 funasr/runtime/python/utils/{infer.sh => test_cer.sh} | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) rename funasr/runtime/python/utils/{infer.py => test_cer.py} (100%) rename funasr/runtime/python/utils/{infer.sh => test_cer.sh} (98%) diff --git a/funasr/runtime/python/benchmark_libtorch.md b/funasr/runtime/python/benchmark_libtorch.md index 52927b190..2aafe2544 100644 --- a/funasr/runtime/python/benchmark_libtorch.md +++ b/funasr/runtime/python/benchmark_libtorch.md @@ -22,12 +22,18 @@ pip install -r requirements.txt #### 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 ffae8f90d..2863ff8cb 100644 --- a/funasr/runtime/python/benchmark_onnx.md +++ b/funasr/runtime/python/benchmark_onnx.md @@ -22,12 +22,18 @@ pip install -r requirements.txt #### 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 c9a1b775b..da4cd08fd 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