diff --git a/.github/scripts/run-librispeech-pruned-transducer-stateless7-streaming-2022-12-29.sh b/.github/scripts/run-librispeech-pruned-transducer-stateless7-streaming-2022-12-29.sh index 465a4ea44..e1e4e1f10 100755 --- a/.github/scripts/run-librispeech-pruned-transducer-stateless7-streaming-2022-12-29.sh +++ b/.github/scripts/run-librispeech-pruned-transducer-stateless7-streaming-2022-12-29.sh @@ -33,15 +33,15 @@ ln -s pretrained.pt epoch-99.pt ls -lh *.pt popd -# log "Export to torchscript model" -# ./pruned_transducer_stateless7_streaming/export.py \ -# --exp-dir $repo/exp \ -# --use-averaged-model false \ -# --bpe-model $repo/data/lang_bpe_500/bpe.model \ -# --decode-chunk-len 32 \ -# --epoch 99 \ -# --avg 1 \ -# --jit 1 +log "Export to torchscript model" +./pruned_transducer_stateless7_streaming/export.py \ + --exp-dir $repo/exp \ + --use-averaged-model false \ + --bpe-model $repo/data/lang_bpe_500/bpe.model \ + --decode-chunk-len 32 \ + --epoch 99 \ + --avg 1 \ + --jit 1 ls -lh $repo/exp/*.pt diff --git a/egs/librispeech/ASR/zipformer/pretrained_ctc.py b/egs/librispeech/ASR/zipformer/pretrained_ctc.py index d3873a647..be239e9c3 100755 --- a/egs/librispeech/ASR/zipformer/pretrained_ctc.py +++ b/egs/librispeech/ASR/zipformer/pretrained_ctc.py @@ -275,7 +275,7 @@ def main(): token_table = k2.SymbolTable.from_file(params.tokens) params.vocab_size = num_tokens(token_table) - params.blank_id = token_table["blk"] + params.blank_id = token_table[""] assert params.blank_id == 0 logging.info(f"{params}")