Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

onnx export

游雁6da6a7847fe7
diff --git a/funasr/export/export_model.py b/funasr/export/export_model.py
index 8d41462b0..3cbf6d293 100644
--- a/funasr/export/export_model.py
+++ b/funasr/export/export_model.py
@@ -11,8 +11,8 @@ from funasr.export.models import get_model
import numpy as np
import random
-torch_version = float(".".join(torch.__version__.split(".")[:2]))
-assert torch_version > 1.9
+# torch_version = float(".".join(torch.__version__.split(".")[:2]))
+# assert torch_version > 1.9
class ASRModelExportParaformer:
def __init__(self, cache_dir: Union[Path, str] = None, onnx: bool = True):