游雁
2024-05-30 7e5f987c5dffdb628a5cd904ef420e593f5ceb22
examples/industrial_data_pretraining/paraformer/export.py
@@ -9,7 +9,9 @@
from funasr import AutoModel
model = AutoModel(model="iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch",)
model = AutoModel(
    model="iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch",
)
res = model.export(type="onnx", quantize=False)
print(res)
@@ -18,7 +20,9 @@
# method2, inference from local path
from funasr import AutoModel
model = AutoModel(model="/Users/zhifu/.cache/modelscope/hub/iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch")
model = AutoModel(
    model="/Users/zhifu/.cache/modelscope/hub/iic/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch"
)
res = model.export(type="onnx", quantize=False)
print(res)
print(res)