游雁
2023-04-20 a95da86a5e13b450033e3d2ceef54fa1098328a5
docs
3个文件已修改
1个文件已添加
1 文件已重命名
33 ■■■■■ 已修改文件
docs/modescope_pipeline/asr_pipeline.md 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
egs_modelscope/asr/TEMPLATE/README.md 补丁 | 查看 | 原始文档 | blame | 历史
funasr/export/README.md 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/python/libtorch/README.md 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/python/onnxruntime/README.md 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/modescope_pipeline/asr_pipeline.md
New file
@@ -0,0 +1 @@
../../egs_modelscope/asr/TEMPLATE/README.md
egs_modelscope/asr/TEMPLATE/README.md
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
funasr/runtime/python/libtorch/README.md
@@ -5,8 +5,11 @@
```shell
pip3 install torch torchaudio
pip install -U modelscope
pip install -U funasr
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
pip install torch-quant # Optional, for torchscript quantization
pip install onnxruntime # Optional, for onnx quantization
```
### Export [onnx model](https://github.com/alibaba-damo-academy/FunASR/tree/main/funasr/export)
funasr/runtime/python/onnxruntime/README.md
@@ -5,8 +5,11 @@
```shell
pip3 install torch torchaudio
pip install -U modelscope
pip install -U funasr
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
pip install torch-quant # Optional, for torchscript quantization
pip install onnxruntime # Optional, for onnx quantization
```
### Export [onnx model](https://github.com/alibaba-damo-academy/FunASR/tree/main/funasr/export)