From 6e69d784e4814c3dbe35e8f70c6cf4b920c8b20b Mon Sep 17 00:00:00 2001
From: 天地 <tiandiweizun@gmail.com>
Date: 星期三, 19 三月 2025 23:10:13 +0800
Subject: [PATCH] 1. bug fix:list(mean)和list(var),由于mean和var是numpy,导致写入到文件的格式错误,参考上面的话,大概率是list(mean.tolist()),其实外层list没有必要 (#2437)
---
examples/aishell/paraformer/run.sh | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/examples/aishell/paraformer/run.sh b/examples/aishell/paraformer/run.sh
index f96b192..ffef61e 100755
--- a/examples/aishell/paraformer/run.sh
+++ b/examples/aishell/paraformer/run.sh
@@ -5,7 +5,7 @@
# general configuration
feats_dir="../DATA" #feature output dictionary
-exp_dir="."
+exp_dir=`pwd`
lang=zh
token_type=char
stage=0
@@ -15,7 +15,7 @@
nj=32
inference_device="cuda" #"cpu"
-inference_checkpoint="model.pt"
+inference_checkpoint="model.pt.avg10"
inference_scp="wav.scp"
inference_batch_size=32
@@ -26,6 +26,8 @@
# exp tag
tag="exp1"
workspace=`pwd`
+
+master_port=12345
. utils/parse_options.sh || exit 1;
@@ -76,8 +78,7 @@
--config-path "${workspace}/conf" \
--config-name "${config}" \
++train_data_set_list="${feats_dir}/data/${train_set}/audio_datasets.jsonl" \
- ++cmvn_file="${feats_dir}/data/${train_set}/cmvn.json" \
- ++dataset_conf.num_workers=$nj
+ ++cmvn_file="${feats_dir}/data/${train_set}/cmvn.json"
fi
token_list=${feats_dir}/data/${lang}_token_list/$token_type/tokens.txt
@@ -114,6 +115,7 @@
torchrun \
--nnodes 1 \
--nproc_per_node ${gpu_num} \
+ --master_port ${master_port} \
../../../funasr/bin/train.py \
--config-path "${workspace}/conf" \
--config-name "${config}" \
--
Gitblit v1.9.1