Skip to content

Commit 15bef27

Browse files
authored
Merge pull request #2330 from coqui-ai/update-missing-checkpoint-path-generate-scorer-pkg-cpp
Updated missing checkpoint path error message
2 parents 2c81b04 + 739e7a8 commit 15bef27

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

native_client/generate_scorer_package.cpp

+11-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,17 @@ create_package(absl::optional<string> checkpoint_path,
5151
}
5252

5353
if (!force_bytes_output_mode.value() && !checkpoint_path.has_value()) {
54-
cerr << "No --alphabet file specified, not using bytes output mode, can't continue.\n";
54+
cerr << "No --checkpoint file specified, not using bytes output mode, can't continue."
55+
<< "\nCheckpoint path must contains an alphabet."
56+
<< "\nStart by creating an alphabet for your models using coqui_stt_training.util.check_characters if needed.\n"
57+
<< "\n python -m coqui_stt_training.util.check_characters \\"
58+
<< "\n --csv-files ... \\"
59+
<< "\n --alphabet-format | grep -v '^#' | sort -n > models/alphabet.txt\n"
60+
<< "\nThis will create an alphabet models/alphabet.txt.\n"
61+
<< "Now rerun this script by giving models/ as the checkpoint path.\n"
62+
<< "\n generate_scorer_package \\"
63+
<< "\n --checkpoint models/ \\"
64+
<< "\n ...\n";
5565
return 1;
5666
}
5767

0 commit comments

Comments
 (0)