diff options
author | Jan Buethe <jbuethe@amazon.de> | 2023-07-23 00:47:49 +0300 |
---|---|---|
committer | Jan Buethe <jbuethe@amazon.de> | 2023-07-23 00:47:49 +0300 |
commit | 4f3761b0199df7024b6e6b2004fc5eb7a6dbb28b (patch) | |
tree | 3a47c2e7d3fcde9aa58482adec1d254e66b8b2ca | |
parent | 0763a8f785a5dc1dcfc806c3306856aeff7ac0ad (diff) |
added verbose option to run_test.py
-rw-r--r-- | dnn/torch/testsuite/run_test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dnn/torch/testsuite/run_test.py b/dnn/torch/testsuite/run_test.py index 38ca8122..5ef46178 100644 --- a/dnn/torch/testsuite/run_test.py +++ b/dnn/torch/testsuite/run_test.py @@ -23,6 +23,7 @@ parser.add_argument('--fs', type=int, help="sampling rate at which input is pres parser.add_argument('--num-workers', type=int, help="number of subprocesses to be used (default=4)", default=4) parser.add_argument('--plc-suffix', type=str, default="_is_lost.txt", help="suffix of plc error pattern file: only relevant if command chain uses PLCFILE (default=_is_lost.txt)") parser.add_argument('--metrics', type=str, default='warpq', help='comma separated string of metrics, supported: {{"warpq", "pesq"}}, default="warpq"') +parser.add_argument('--verbose', action='store_true', help='enables printouts of all commands run in the pipeline') def check_for_sox_in_path(): r = subprocess.run("sox -h", shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) @@ -321,7 +322,7 @@ if __name__ == "__main__": output_path = get_output_path(args.input_folder, input_path, args.output_folder) try: - rval = run_processing_chain(input_path, output_path, model_commands, args.fs, metrics=metrics, plc_suffix=args.plc_suffix, verbose=False) + rval = run_processing_chain(input_path, output_path, model_commands, args.fs, metrics=metrics, plc_suffix=args.plc_suffix, verbose=args.verbose) except: rval = (input_path, -1) |