From 102f77ba1f3f5f88b1087112d63905323affc044 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Tue, 13 Sep 2022 10:51:35 +0800 Subject: [PATCH] Use modified ctc topo when vocab size is > 500 --- egs/librispeech/ASR/conformer_ctc/pretrained.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/egs/librispeech/ASR/conformer_ctc/pretrained.py b/egs/librispeech/ASR/conformer_ctc/pretrained.py index 28724e1ebe..a2c0a54868 100755 --- a/egs/librispeech/ASR/conformer_ctc/pretrained.py +++ b/egs/librispeech/ASR/conformer_ctc/pretrained.py @@ -322,7 +322,7 @@ def main(): H = k2.ctc_topo( max_token=max_token_id, - modified=False, + modified=params.num_classes > 500, device=device, )