From 1596f6f414f6f41da66506debb1dff19fffeb3ec Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期一, 24 六月 2024 11:55:17 +0800
Subject: [PATCH] fixbug hotwords

---
 examples/aishell/e_branchformer/run.sh |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/examples/aishell/e_branchformer/run.sh b/examples/aishell/e_branchformer/run.sh
index bc78b5f..452ec80 100755
--- a/examples/aishell/e_branchformer/run.sh
+++ b/examples/aishell/e_branchformer/run.sh
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 
 
-CUDA_VISIBLE_DEVICES="0,1"
+CUDA_VISIBLE_DEVICES="0,1,2,3"
 
 # general configuration
 feats_dir="../DATA" #feature output dictionary
@@ -17,7 +17,7 @@
 inference_device="cuda" #"cpu"
 inference_checkpoint="model.pt.avg10"
 inference_scp="wav.scp"
-inference_batch_size=32
+inference_batch_size=1
 
 # data
 raw_data=../raw_data
@@ -26,6 +26,8 @@
 # exp tag
 tag="exp1"
 workspace=`pwd`
+
+master_port=12345
 
 . utils/parse_options.sh || exit 1;
 
@@ -115,6 +117,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