From 3eee773814c392e497557bbad501e0add4c8eca9 Mon Sep 17 00:00:00 2001 From: 游雁 <zhifu.gzf@alibaba-inc.com> Date: 星期日, 09 六月 2024 02:11:42 +0800 Subject: [PATCH] fix bug --- examples/industrial_data_pretraining/paraformer/export.py | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/industrial_data_pretraining/paraformer/export.py b/examples/industrial_data_pretraining/paraformer/export.py index 1c86927..19512c1 100644 --- a/examples/industrial_data_pretraining/paraformer/export.py +++ b/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) \ No newline at end of file +print(res) -- Gitblit v1.9.1