You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f.write('acoustic_model_url: <replace this with a publicly available URL of the acoustic model>\n')
839
+
f.write('scorer_url: <replace this with a publicly available URL of the scorer, if present>\n')
840
+
f.write('---\n')
841
+
f.write('{}\n'.format(FLAGS.export_description))
842
+
843
+
log_info('Model metadata file saved to {}. Before submitting the exported model for publishing make sure all information in the metadata file is correct, and complete the URL fields.'.format(metadata_fname))
Copy file name to clipboardExpand all lines: util/flags.py
+17-2
Original file line number
Diff line number
Diff line change
@@ -113,11 +113,26 @@ def create_flags():
113
113
f.DEFINE_boolean('remove_export', False, 'whether to remove old exported models')
114
114
f.DEFINE_boolean('export_tflite', False, 'export a graph ready for TF Lite engine')
115
115
f.DEFINE_integer('n_steps', 16, 'how many timesteps to process at once by the export graph, higher values mean more latency')
116
-
f.DEFINE_string('export_language', '', 'language the model was trained on e.g. "en" or "English". Gets embedded into exported model.')
117
116
f.DEFINE_boolean('export_zip', False, 'export a TFLite model and package with LM and info.json')
118
-
f.DEFINE_string('export_name', 'output_graph', 'name for the export model')
117
+
f.DEFINE_string('export_file_name', 'output_graph', 'name for the exported model file name')
119
118
f.DEFINE_integer('export_beam_width', 500, 'default beam width to embed into exported graph')
120
119
120
+
# Model metadata
121
+
122
+
f.DEFINE_string('export_author_id', 'author', 'author of the exported model. GitHub user or organization name used to uniquely identify the author of this model')
123
+
f.DEFINE_string('export_model_name', 'model', 'name of the exported model. Must not contain forward slashes.')
124
+
f.DEFINE_string('export_model_version', '0.0.1', 'semantic version of the exported model. See https://semver.org/. This is fully controlled by you as author of the model and has no required connection with DeepSpeech versions')
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')
130
+
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.')
131
+
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".')
132
+
str_val_equals_help('export_min_ds_version', 'minimum DeepSpeech version (inclusive) the exported model is compatible with')
133
+
str_val_equals_help('export_max_ds_version', 'maximum DeepSpeech version (inclusive) the exported model is compatible with')
134
+
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.')
0 commit comments