From c4412495bded97f40c7cdd5ab37cb5f789bfff41 Mon Sep 17 00:00:00 2001 From: inisis <desmond.yao@buaa.edu.cn> Date: 星期二, 17 十二月 2024 12:40:04 +0800 Subject: [PATCH] add onnxslim reference (#2314) --- runtime/python/utils/test_rtf.py | 2 +- README_zh.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/README_zh.md b/README_zh.md index b90f0e4..272ab13 100644 --- a/README_zh.md +++ b/README_zh.md @@ -312,6 +312,12 @@ res = model.export(quantize=False) ``` +### 浼樺寲onnx +```shell +# pip3 install -U onnxslim +onnxslim model.onnx model.onnx +``` + ### 娴嬭瘯ONNX ```python # pip3 install -U funasr-onnx diff --git a/runtime/python/utils/test_rtf.py b/runtime/python/utils/test_rtf.py index 112025d..8e50c34 100644 --- a/runtime/python/utils/test_rtf.py +++ b/runtime/python/utils/test_rtf.py @@ -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 -- Gitblit v1.9.1