From f28951f2b6e0a7628eaebbf7e93f4682fce8fe38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=BBelasko?= Date: Fri, 21 Jan 2022 17:16:49 -0500 Subject: [PATCH] Add an assertion --- egs/librispeech/ASR/conformer_ctc/train.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/egs/librispeech/ASR/conformer_ctc/train.py b/egs/librispeech/ASR/conformer_ctc/train.py index 09d452c68..d57d693a0 100755 --- a/egs/librispeech/ASR/conformer_ctc/train.py +++ b/egs/librispeech/ASR/conformer_ctc/train.py @@ -588,6 +588,10 @@ def run(rank, world_size, args): eos_token="", ) elif "lang_phone" in params.lang_dir: + assert params.att_rate == 0, ( + "Attention decoder training does not support phone lang dirs at this time due to a missing " + " symbol. Set --att-rate=0 for pure CTC training when using a phone-based lang dir." + ) graph_compiler = CtcTrainingGraphCompiler( lexicon, device=device,