From 9fa30be8095344a56ac436aa49b4fd606269172d Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 3 Feb 2023 00:32:48 +0100 Subject: [PATCH] Added --crepe_model usability --- README.md | 4 ++-- UltraSinger.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7b46461..b42818f 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ _Not all options working now!_ [pitcher] -crepe default - (-crepe_model tiny|small|medium|large|full) # In Progress + --crepe_model tiny|small|medium|large|full ``` ### Input @@ -88,5 +88,5 @@ For just testing you should use `tiny`, which is currently default. If you want solid accurate, then use the `full` model. ```commandline -in progress +-i XYZ --crepe_model full ``` \ No newline at end of file diff --git a/UltraSinger.py b/UltraSinger.py index c0cf1af..0c23087 100644 --- a/UltraSinger.py +++ b/UltraSinger.py @@ -318,7 +318,7 @@ def do_audio_stuff(): def main(argv): short = "hi:o:amv:" - long = ["ifile=", "ofile="] + long = ["ifile=", "ofile=", "crepe_model="] opts, args = getopt.getopt(argv, short, long) @@ -336,6 +336,8 @@ def main(argv): settings.output_file_path = arg elif opt in ("-v"): settings.vosk_model_path = arg + elif opt in ("--crepe_model"): + settings.crepe_model_capacity = arg if settings.output_file_path == '': if settings.input_file_path.startswith('https:'):