Skip to content

Commit

Permalink
Fix decoding finetune model (k2-fsa#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkufool authored Mar 26, 2024
1 parent b156b6c commit 42de459
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions egs/gigaspeech/KWS/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
6 changes: 4 additions & 2 deletions egs/wenetspeech/KWS/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 42de459

Please sign in to comment.