From d5784e3444ff891b92c681d866f1d527a25cb299 Mon Sep 17 00:00:00 2001 From: zhifu gao <zhifu.gzf@alibaba-inc.com> Date: 星期日, 23 四月 2023 15:51:59 +0800 Subject: [PATCH] Merge pull request #404 from alibaba-damo-academy/main --- funasr/runtime/python/benchmark_libtorch.md | 35 ++++++++++++++++++++--------------- 1 files changed, 20 insertions(+), 15 deletions(-) diff --git a/funasr/runtime/python/benchmark_libtorch.md b/funasr/runtime/python/benchmark_libtorch.md index 6c068fe..52927b1 100644 --- a/funasr/runtime/python/benchmark_libtorch.md +++ b/funasr/runtime/python/benchmark_libtorch.md @@ -1,27 +1,32 @@ -# Benchmark +# CPU Benchmark (Libtorch) +## Configuration ### Data set: Aishell1 [test set](https://www.openslr.org/33/) , the total audio duration is 36108.919 seconds. ### Tools -- Install ModelScope and FunASR +#### Install Requirements +Install ModelScope and FunASR +```shell +pip install -U modelscope funasr +# For the users in China, you could install with the command: +#pip install -U funasr -i https://mirror.sjtu.edu.cn/pypi/web/simple +``` - ```shell - pip install "modelscope[audio_asr]" --upgrade -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html - git clone https://github.com/alibaba-damo-academy/FunASR.git && cd FunASR - pip install --editable ./ - cd funasr/runtime/python/utils - pip install -r requirements.txt - ``` +Install requirements +```shell +git clone https://github.com/alibaba-damo-academy/FunASR.git && cd FunASR +cd funasr/runtime/python/utils +pip install -r requirements.txt +``` -- recipe +#### Recipe - set the model, data path and output_dir +set the model, data path and output_dir - ```shell - nohup bash test_rtf.sh &> log.txt & - ``` - +```shell +nohup bash test_rtf.sh &> log.txt & +``` ## [Paraformer-large](https://www.modelscope.cn/models/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch/summary) -- Gitblit v1.9.1