Skip to content

Commit

Permalink
Merge pull request #2330 from coqui-ai/update-missing-checkpoint-path…
Browse files Browse the repository at this point in the history
…-generate-scorer-pkg-cpp

Updated missing checkpoint path error message
  • Loading branch information
wasertech committed Jan 12, 2023
2 parents 2c81b04 + 739e7a8 commit 15bef27
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion native_client/generate_scorer_package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,17 @@ create_package(absl::optional<string> checkpoint_path,
}

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

Expand Down

0 comments on commit 15bef27

Please sign in to comment.