mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
export model
This commit is contained in:
parent
8871dcb93a
commit
d25a9738e8
@ -1,15 +1,15 @@
|
||||
|
||||
## environment
|
||||
## Environments
|
||||
funasr 0.1.7
|
||||
python 3.7
|
||||
torch 1.11.0
|
||||
modelscope 1.2.0
|
||||
|
||||
## install modelscope and funasr
|
||||
## Install modelscope and funasr
|
||||
|
||||
The install is the same as [funasr](../../README.md)
|
||||
|
||||
## export onnx format model
|
||||
## Export onnx format model
|
||||
Export model from modelscope
|
||||
```python
|
||||
from funasr.export.export_model import ASRModelExportParaformer
|
||||
@ -29,7 +29,7 @@ export_model = ASRModelExportParaformer(cache_dir=output_dir, onnx=True)
|
||||
export_model.export_from_local('/root/cache/export/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch')
|
||||
```
|
||||
|
||||
## export torchscripts format model
|
||||
## Export torchscripts format model
|
||||
Export model from modelscope
|
||||
```python
|
||||
from funasr.export.export_model import ASRModelExportParaformer
|
||||
|
||||
Loading…
Reference in New Issue
Block a user