From 3409fde4a001de076a2a15dbf5c9cc2458f038ea Mon Sep 17 00:00:00 2001 From: Reuben Morais Date: Mon, 29 Mar 2021 21:06:38 +0200 Subject: [PATCH] Rename model export metadata flags --- training/coqui_stt_training/train.py | 4 ++-- training/coqui_stt_training/util/flags.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/training/coqui_stt_training/train.py b/training/coqui_stt_training/train.py index 8d563014..ad28c700 100644 --- a/training/coqui_stt_training/train.py +++ b/training/coqui_stt_training/train.py @@ -866,8 +866,8 @@ def export(): f.write('license: {}\n'.format(FLAGS.export_license)) f.write('language: {}\n'.format(FLAGS.export_language)) f.write('runtime: {}\n'.format(model_runtime)) - f.write('min_ds_version: {}\n'.format(FLAGS.export_min_ds_version)) - f.write('max_ds_version: {}\n'.format(FLAGS.export_max_ds_version)) + f.write('min_stt_version: {}\n'.format(FLAGS.export_min_stt_version)) + f.write('max_stt_version: {}\n'.format(FLAGS.export_max_stt_version)) f.write('acoustic_model_url: \n') f.write('scorer_url: \n') f.write('---\n') diff --git a/training/coqui_stt_training/util/flags.py b/training/coqui_stt_training/util/flags.py index 69678bb6..179a987d 100644 --- a/training/coqui_stt_training/util/flags.py +++ b/training/coqui_stt_training/util/flags.py @@ -117,8 +117,8 @@ def create_flags(): str_val_equals_help('export_contact_info', 'public contact information of the author. Can be an email address, or a link to a contact form, issue tracker, or discussion forum. Must provide a way to reach the model authors') str_val_equals_help('export_license', 'SPDX identifier of the license of the exported model. See https://spdx.org/licenses/. If the license does not have an SPDX identifier, use the license name.') str_val_equals_help('export_language', 'language the model was trained on - IETF BCP 47 language tag including at least language, script and region subtags. E.g. "en-Latn-UK" or "de-Latn-DE" or "cmn-Hans-CN". Include as much info as you can without loss of precision. For example, if a model is trained on Scottish English, include the variant subtag: "en-Latn-GB-Scotland".') - str_val_equals_help('export_min_ds_version', 'minimum Coqui STT version (inclusive) the exported model is compatible with') - str_val_equals_help('export_max_ds_version', 'maximum Coqui STT version (inclusive) the exported model is compatible with') + str_val_equals_help('export_min_stt_version', 'minimum Coqui STT version (inclusive) the exported model is compatible with') + str_val_equals_help('export_max_stt_version', 'maximum Coqui STT version (inclusive) the exported model is compatible with') str_val_equals_help('export_description', 'Freeform description of the model being exported. Markdown accepted. You can also leave this flag unchanged and edit the generated .md file directly. Useful things to describe are demographic and acoustic characteristics of the data used to train the model, any architectural changes, names of public datasets that were used when applicable, hyperparameters used for training, evaluation results on standard benchmark datasets, etc.') # Reporting