Skip to content

Commit 12d694f

Browse files
authored
fix benchmark links (#1092)
1 parent 0612ae7 commit 12d694f

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

runtime/python/libtorch/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Libtorch-python
22

33
## Export the model
4+
45
### Install [modelscope and funasr](https://github.com/alibaba-damo-academy/FunASR#installation)
56

67
```shell
@@ -18,14 +19,16 @@ pip install onnx onnxruntime # Optional, for onnx quantization
1819
python -m funasr.export.export_model --model-name damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch --export-dir ./export --type torch --quantize True
1920
```
2021

21-
## Install the `funasr_torch`.
22-
22+
## Install the `funasr_torch`
23+
2324
install from pip
25+
2426
```shell
2527
pip install -U funasr_torch
2628
# For the users in China, you could install with the command:
2729
# pip install -U funasr_torch -i https://mirror.sjtu.edu.cn/pypi/web/simple
2830
```
31+
2932
or install from source code
3033

3134
```shell
@@ -36,11 +39,13 @@ pip install -e ./
3639
# pip install -e ./ -i https://mirror.sjtu.edu.cn/pypi/web/simple
3740
```
3841

39-
## Run the demo.
42+
## Run the demo
43+
4044
- Model_dir: the model path, which contains `model.torchscripts`, `config.yaml`, `am.mvn`.
4145
- Input: wav formt file, support formats: `str, np.ndarray, List[str]`
4246
- Output: `List[str]`: recognition result.
4347
- Example:
48+
4449
```python
4550
from funasr_torch import Paraformer
4651

@@ -55,7 +60,7 @@ pip install -e ./
5560

5661
## Performance benchmark
5762

58-
Please ref to [benchmark](https://github.com/alibaba-damo-academy/FunASR/blob/main/funasr/runtime/python/benchmark_libtorch.md)
63+
Please ref to [benchmark](https://github.com/alibaba-damo-academy/FunASR/blob/main/runtime/docs/benchmark_libtorch.md)
5964

6065
## Speed
6166

@@ -70,4 +75,5 @@ Test [wav, 5.53s, 100 times avg.](https://isv-data.oss-cn-hangzhou.aliyuncs.com/
7075
| Onnx | 0.038 |
7176

7277
## Acknowledge
78+
7379
This project is maintained by [FunASR community](https://github.com/alibaba-damo-academy/FunASR).

runtime/python/onnxruntime/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Output: `List[str]`: recognition result
180180

181181
## Performance benchmark
182182

183-
Please ref to [benchmark](https://github.com/alibaba-damo-academy/FunASR/blob/main/funasr/runtime/docs/benchmark_onnx.md)
183+
Please ref to [benchmark](https://github.com/alibaba-damo-academy/FunASR/blob/main/runtime/docs/benchmark_onnx.md)
184184

185185
## Acknowledge
186186

0 commit comments

Comments
 (0)