From d80ac2fd2df4e7fb8a28acfa512bb11472b5cc99 Mon Sep 17 00:00:00 2001
From: liugz18 <57401541+liugz18@users.noreply.github.com>
Date: 星期四, 18 七月 2024 21:34:55 +0800
Subject: [PATCH] Rename 'res' in line 514 to avoid with naming conflict with line 365

---
 examples/industrial_data_pretraining/fsmn_vad_streaming/export.sh |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/examples/industrial_data_pretraining/fsmn_vad_streaming/export.sh b/examples/industrial_data_pretraining/fsmn_vad_streaming/export.sh
index 0bb4617..e095544 100644
--- a/examples/industrial_data_pretraining/fsmn_vad_streaming/export.sh
+++ b/examples/industrial_data_pretraining/fsmn_vad_streaming/export.sh
@@ -6,14 +6,19 @@
 export HYDRA_FULL_ERROR=1
 
 
-model="damo/speech_fsmn_vad_zh-cn-16k-common-pytorch"
-model_revision="v2.0.4"
+model="iic/speech_fsmn_vad_zh-cn-16k-common-pytorch"
 
-python funasr/bin/export.py \
+
+python -m funasr.bin.export \
 ++model=${model} \
 ++model_revision=${model_revision} \
-++input="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/vad_example.wav" \
 ++type="onnx" \
-++quantize=false \
-++device="cpu" \
-++debug=false
+++quantize=false
+
+# method2, inference from local path
+model="/Users/zhifu/.cache/modelscope/hub/iic/speech_fsmn_vad_zh-cn-16k-common-pytorch"
+
+python -m funasr.bin.export \
+++model=${model} \
+++type="onnx" \
+++quantize=false
\ No newline at end of file

--
Gitblit v1.9.1