From f0f42d6d86ffcaf7d463d0845fa35ca3db6cd3bb Mon Sep 17 00:00:00 2001 From: "Nat Kershaw (MSFT)" Date: Sun, 7 May 2023 16:19:13 -0700 Subject: [PATCH 1/2] Clarify args to whisper e2e script --- tutorials/whisper_e2e.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/whisper_e2e.py b/tutorials/whisper_e2e.py index 5852d00de..d52383252 100644 --- a/tutorials/whisper_e2e.py +++ b/tutorials/whisper_e2e.py @@ -233,8 +233,8 @@ def postprocessing(token_ids, hf_processor): if __name__ == '__main__': parser = argparse.ArgumentParser() - parser.add_argument("-a", "--audio", required=True, help="Path to audio file") - parser.add_argument("-m", "--model", required=True, help="Path to custom export of Whisper with beam search") + parser.add_argument("-a", "--audio", required=True, help="Audio file input used to export model") + parser.add_argument("-m", "--model", required=True, help="Whisper model with beam search onnx file. Filename must be named whisper-.*_beamsearch.onnx") args = parser.parse_args() print("Looking for the exported model...", end='') From 8766ecb8028870046c08fa48c44f6ac9297057df Mon Sep 17 00:00:00 2001 From: "Nat Kershaw (MSFT)" Date: Tue, 30 May 2023 15:28:15 -0700 Subject: [PATCH 2/2] Update with review comment --- tutorials/whisper_e2e.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/whisper_e2e.py b/tutorials/whisper_e2e.py index a7cf808bd..e74f2cc00 100644 --- a/tutorials/whisper_e2e.py +++ b/tutorials/whisper_e2e.py @@ -234,7 +234,7 @@ def postprocessing(token_ids, hf_processor): if __name__ == '__main__': parser = argparse.ArgumentParser() - parser.add_argument("-a", "--audio", required=True, help="Audio file input used to export model") + parser.add_argument("-a", "--audio", required=True, help="Audio file input used to test exported model") parser.add_argument("-m", "--model", required=True, help="Whisper model with beam search onnx file. Filename must be named whisper-.*_beamsearch.onnx") args = parser.parse_args()