From a95da86a5e13b450033e3d2ceef54fa1098328a5 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 20 四月 2023 18:47:27 +0800
Subject: [PATCH] docs
---
funasr/export/README.md | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/funasr/export/README.md b/funasr/export/README.md
index 8f57673..6d7c731 100644
--- a/funasr/export/README.md
+++ b/funasr/export/README.md
@@ -1,14 +1,20 @@
# Export models
## Environments
- torch >= 1.11.0
- modelscope >= 1.2.0
- torch-quant >= 0.4.0 (required for exporting quantized torchscript format model)
- # pip install torch-quant -i https://pypi.org/simple
-
-## Install modelscope and funasr
+### Install modelscope and funasr
The installation is the same as [funasr](https://github.com/alibaba-damo-academy/FunASR/blob/main/README.md#installation)
+```shell
+pip3 install torch torchaudio
+pip install -U modelscope funasr
+# For the users in China, you could install with the command:
+# pip install -U modelscope funasr -i https://mirror.sjtu.edu.cn/pypi/web/simple
+```
+### Install the quantization tools
+```shell
+pip install torch-quant # Optional, for torchscript quantization
+pip install onnxruntime # Optional, for onnx quantization
+```
## Export model
`Tips`: torch>=1.11.0
--
Gitblit v1.9.1