mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
parent
f921a71818
commit
1368a9bca4
@ -312,12 +312,6 @@ model = AutoModel(model="paraformer")
|
||||
res = model.export(quantize=False)
|
||||
```
|
||||
|
||||
### 优化onnx
|
||||
```shell
|
||||
# pip3 install -U onnxslim
|
||||
onnxslim model.onnx model.onnx
|
||||
```
|
||||
|
||||
### 测试ONNX
|
||||
```python
|
||||
# pip3 install -U funasr-onnx
|
||||
|
||||
@ -411,6 +411,12 @@ model = AutoModel(model="paraformer", device="cpu")
|
||||
res = model.export(quantize=False)
|
||||
```
|
||||
|
||||
### optimize onnx
|
||||
```shell
|
||||
# pip3 install -U onnxslim
|
||||
onnxslim model.onnx model.onnx
|
||||
```
|
||||
|
||||
### Test ONNX
|
||||
```python
|
||||
# pip3 install -U funasr-onnx
|
||||
|
||||
@ -421,6 +421,12 @@ model = AutoModel(model="paraformer")
|
||||
res = model.export(quantize=False)
|
||||
```
|
||||
|
||||
### 优化onnx
|
||||
```shell
|
||||
# pip3 install -U onnxslim
|
||||
onnxslim model.onnx model.onnx
|
||||
```
|
||||
|
||||
### 测试ONNX
|
||||
```python
|
||||
# pip3 install -U funasr-onnx
|
||||
|
||||
Loading…
Reference in New Issue
Block a user