From d339765fc2d41ccd9044583df1fcb3fbb1dcb733 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期三, 27 十二月 2023 16:48:57 +0800
Subject: [PATCH] funasr1.0
---
examples/industrial_data_pretraining/fsmn-vad/infer.sh | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/examples/industrial_data_pretraining/fsmn-vad/infer.sh b/examples/industrial_data_pretraining/fsmn-vad/infer.sh
index 9bfd8ba..7662a53 100644
--- a/examples/industrial_data_pretraining/fsmn-vad/infer.sh
+++ b/examples/industrial_data_pretraining/fsmn-vad/infer.sh
@@ -1,8 +1,13 @@
-cmd="funasr/bin/inference.py"
+# download model
+local_path_root=./modelscope_models
+mkdir -p ${local_path_root}
+local_path=${local_path_root}/speech_fsmn_vad_zh-cn-16k-common-pytorch
+git clone https://www.modelscope.cn/damo/speech_fsmn_vad_zh-cn-16k-common-pytorch.git ${local_path}
-python $cmd \
-+model="/Users/zhifu/Downloads/modelscope_models/speech_fsmn_vad_zh-cn-16k-common-pytorch" \
-+input="/Users/zhifu/Downloads/asr_example.wav" \
-+output_dir="/Users/zhifu/Downloads/ckpt/funasr2/exp2_vad" \
+
+python funasr/bin/inference.py \
++model="${local_path}" \
++input="${local_path}/example/vad_example.wav" \
++output_dir="./outputs/debug" \
+device="cpu" \
--
Gitblit v1.9.1