From f918af66cfaa95196f8a861fe4a3f2b453a410da Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 09 二月 2023 18:50:06 +0800
Subject: [PATCH] Merge pull request #86 from alibaba-damo-academy/dev
---
funasr/export/README.md | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/funasr/export/README.md b/funasr/export/README.md
index be08542..9740f23 100644
--- a/funasr/export/README.md
+++ b/funasr/export/README.md
@@ -7,14 +7,14 @@
## Install modelscope and funasr
-The install is the same as [funasr](../../README.md)
+The installation is the same as [funasr](../../README.md)
## Export onnx format model
Export model from modelscope
```python
from funasr.export.export_model import ASRModelExportParaformer
-output_dir = "../export"
+output_dir = "../export" # onnx/torchscripts model save path
export_model = ASRModelExportParaformer(cache_dir=output_dir, onnx=True)
export_model.export_from_modelscope('damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch')
```
@@ -24,7 +24,7 @@
```python
from funasr.export.export_model import ASRModelExportParaformer
-output_dir = "../export"
+output_dir = "../export" # onnx/torchscripts model save path
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')
```
@@ -34,7 +34,7 @@
```python
from funasr.export.export_model import ASRModelExportParaformer
-output_dir = "../export"
+output_dir = "../export" # onnx/torchscripts model save path
export_model = ASRModelExportParaformer(cache_dir=output_dir, onnx=False)
export_model.export_from_modelscope('damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch')
```
@@ -43,7 +43,8 @@
```python
from funasr.export.export_model import ASRModelExportParaformer
-output_dir = "../export"
+output_dir = "../export" # onnx/torchscripts model save path
export_model = ASRModelExportParaformer(cache_dir=output_dir, onnx=False)
export_model.export_from_local('/root/cache/export/damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch')
-```
\ No newline at end of file
+```
+
--
Gitblit v1.9.1