From f71e32735ffdbc05ee60397ef823ba2cdf15a843 Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Fri, 6 Aug 2021 16:55:42 +0200 Subject: [PATCH] Add a more explicit error message when alphabet is not specified --- training/coqui_stt_training/train.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/training/coqui_stt_training/train.py b/training/coqui_stt_training/train.py index 22baa57c..6be4ef55 100644 --- a/training/coqui_stt_training/train.py +++ b/training/coqui_stt_training/train.py @@ -1259,6 +1259,10 @@ def early_training_checks(): "for loading and saving." ) + if not Config.alphabet_config_path and not Config.bytes_output_mode: + log_error("Missing --alphabet_config_path flag, can't continue") + sys.exit(1) + def main(): initialize_globals_from_cli()