diff --git a/egs/gigaspeech/KWS/run.sh b/egs/gigaspeech/KWS/run.sh index 42e864efee..bd562ce1c3 100755 --- a/egs/gigaspeech/KWS/run.sh +++ b/egs/gigaspeech/KWS/run.sh @@ -47,7 +47,9 @@ fi if [ $stage -le 1 ] && [ $stop_stage -ge 1 ]; then log "Stage 1: Decode the model." - for t in small, large; do + + export CUDA_VISIBLE_DEVICES="0" + for t in small large; do python ./zipformer/decode.py \ --epoch 12 \ --avg 2 \ @@ -140,7 +142,8 @@ fi if [ $stage -le 4 ] && [ $stop_stage -ge 4 ]; then log "Stage 1: Decode the finetuned model." - for t in small, large; do + export CUDA_VISIBLE_DEVICES="0" + for t in small large; do python ./zipformer/decode.py \ --epoch 10 \ --avg 2 \ diff --git a/egs/wenetspeech/KWS/run.sh b/egs/wenetspeech/KWS/run.sh index f702e08175..8698e9fcc1 100755 --- a/egs/wenetspeech/KWS/run.sh +++ b/egs/wenetspeech/KWS/run.sh @@ -48,7 +48,8 @@ fi if [ $stage -le 1 ] && [ $stop_stage -ge 1 ]; then log "Stage 1: Decode the model." - for t in small, large; do + export CUDA_VISIBLE_DEVICES="0" + for t in small large; do python ./zipformer/decode.py \ --epoch 18 \ --avg 2 \ @@ -143,7 +144,8 @@ fi if [ $stage -le 4 ] && [ $stop_stage -ge 4 ]; then log "Stage 1: Decode the finetuned model." - for t in small, large; do + export CUDA_VISIBLE_DEVICES="0" + for t in small large; do python ./zipformer/decode.py \ --epoch 10 \ --avg 2 \