mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
readme
This commit is contained in:
parent
d63b89d718
commit
63c40fae93
@ -10,15 +10,14 @@
|
|||||||
The installation is the same as [funasr](../../README.md)
|
The installation is the same as [funasr](../../README.md)
|
||||||
|
|
||||||
## Export model
|
## Export model
|
||||||
`Tips`: torch1.11.0 is required.
|
`Tips`: torch 1.11.0 is required.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
python -m funasr.export.export_model [model_name] [export_dir] [true/flase]
|
python -m funasr.export.export_model [model_name] [export_dir] [onnx]
|
||||||
```
|
```
|
||||||
`model_name`: the model is to export.
|
`model_name`: the model is to export.
|
||||||
|
|
||||||
`export_dir`: the dir where the onnx is export.
|
`export_dir`: the dir where the onnx is export.
|
||||||
`true`: export onnx format model, `false`: export torchscripts format model.
|
`onnx`: `true`, export onnx format model; `false`, export torchscripts format model.
|
||||||
|
|
||||||
## For example
|
## For example
|
||||||
### Export onnx format model
|
### Export onnx format model
|
||||||
|
|||||||
@ -21,7 +21,7 @@ cd funasr/runtime/python/onnxruntime/paraformer/rapid_paraformer
|
|||||||
```
|
```
|
||||||
3. Export the model.
|
3. Export the model.
|
||||||
|
|
||||||
`Tips`: torch1.11.0 is required.
|
`Tips`: torch 1.11.0 is required.
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
python -m funasr.export.export_model [model_name] [export_dir] [true]
|
python -m funasr.export.export_model [model_name] [export_dir] [true]
|
||||||
@ -62,12 +62,13 @@ cd funasr/runtime/python/onnxruntime/paraformer/rapid_paraformer
|
|||||||
## Speed
|
## Speed
|
||||||
|
|
||||||
Environment:Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
|
Environment:Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
|
||||||
|
|
||||||
Test [wav](https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav)
|
Test [wav](https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav)
|
||||||
|
|
||||||
| Backend | RTF |
|
| Backend | RTF (100 times avg.) |
|
||||||
|:-------:|:------:|
|
|:-------:|:--------------------:|
|
||||||
| Pytorch | 0.110 |
|
| Pytorch | 0.110 |
|
||||||
| Onnx | 0.038 |
|
| Onnx | 0.038 |
|
||||||
|
|
||||||
|
|
||||||
## Acknowledge
|
## Acknowledge
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user