add onnxslim reference (#2314)

This commit is contained in:
inisis
2024-12-17 12:40:04 +08:00
committed by GitHub
parent 9c0d7bee93
commit c4412495bd
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -312,6 +312,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
+1 -1
View File
@@ -1,7 +1,7 @@
import time
import sys
import librosa
from funasr.utils.types import str2bool
from funasr.utils.type_utils import str2bool
import argparse