Skip to content

Commit 8d95f6a

Browse files
committed
Tweaked short CLI params
1 parent db8b0bd commit 8d95f6a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ If the GPU isn't being detected, make sure your docker runtime environment is pa
110110
You can use Audio Separator via the command line:
111111

112112
```sh
113-
usage: audio-separator [-h] [-v] [-d] [-e] [-m] [--log_level LOG_LEVEL] [--model_filename MODEL_FILENAME] [--output_format OUTPUT_FORMAT] [--output_dir OUTPUT_DIR] [--model_file_dir MODEL_FILE_DIR] [--denoise]
114-
[--invert_spect] [--normalization NORMALIZATION] [--single_stem SINGLE_STEM] [--sample_rate SAMPLE_RATE] [--mdx_segment_size MDX_SEGMENT_SIZE] [--mdx_overlap MDX_OVERLAP]
115-
[--mdx_batch_size MDX_BATCH_SIZE] [--mdx_hop_length MDX_HOP_LENGTH] [--vr_batch_size VR_BATCH_SIZE] [--vr_window_size VR_WINDOW_SIZE] [--vr_aggression VR_AGGRESSION] [--vr_enable_tta]
116-
[--vr_high_end_process] [--vr_enable_post_process] [--vr_post_process_threshold VR_POST_PROCESS_THRESHOLD]
113+
usage: audio-separator [-h] [-v] [-d] [-e] [-l] [--log_level LOG_LEVEL] [-m MODEL_FILENAME] [--output_format OUTPUT_FORMAT] [--output_dir OUTPUT_DIR] [--model_file_dir MODEL_FILE_DIR] [--denoise] [--invert_spect]
114+
[--normalization NORMALIZATION] [--single_stem SINGLE_STEM] [--sample_rate SAMPLE_RATE] [--mdx_segment_size MDX_SEGMENT_SIZE] [--mdx_overlap MDX_OVERLAP] [--mdx_batch_size MDX_BATCH_SIZE]
115+
[--mdx_hop_length MDX_HOP_LENGTH] [--vr_batch_size VR_BATCH_SIZE] [--vr_window_size VR_WINDOW_SIZE] [--vr_aggression VR_AGGRESSION] [--vr_enable_tta] [--vr_high_end_process]
116+
[--vr_enable_post_process] [--vr_post_process_threshold VR_POST_PROCESS_THRESHOLD]
117117
[audio_file]
118118

119119
Separate audio file into different stems.
@@ -128,11 +128,11 @@ Info and Debugging:
128128
-v, --version show program's version number and exit
129129
-d, --debug enable debug logging, equivalent to --log_level=debug
130130
-e, --env_info print environment information and exit.
131-
-m, --list_models list all supported models and exit.
131+
-l, --list_models list all supported models and exit.
132132
--log_level LOG_LEVEL log level, e.g. info, debug, warning (default: info)
133133
134134
Separation I/O Params:
135-
--model_filename MODEL_FILENAME model to use for separation (default: 2_HP-UVR.pth). Example: --model_filename=UVR_MDXNET_KARA_2.onnx
135+
-m MODEL_FILENAME, --model_filename MODEL_FILENAME model to use for separation (default: UVR-MDX-NET-Inst_HQ_3.onnx). Example: -m 2_HP-UVR.pth
136136
--output_format OUTPUT_FORMAT output format for separated files, any common format (default: FLAC). Example: --output_format=MP3
137137
--output_dir OUTPUT_DIR directory to write output files (default: <current dir>). Example: --output_dir=/app/separated
138138
--model_file_dir MODEL_FILE_DIR model files directory (default: /tmp/audio-separator-models/). Example: --model_file_dir=/app/models

audio_separator/utils/cli.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ def main():
2424
info_params.add_argument("-v", "--version", action="version", version=f"%(prog)s {package_version}")
2525
info_params.add_argument("-d", "--debug", action="store_true", help="enable debug logging, equivalent to --log_level=debug")
2626
info_params.add_argument("-e", "--env_info", action="store_true", help="print environment information and exit.")
27-
info_params.add_argument("-m", "--list_models", action="store_true", help="list all supported models and exit.")
27+
info_params.add_argument("-l", "--list_models", action="store_true", help="list all supported models and exit.")
2828
info_params.add_argument("--log_level", default="info", help="log level, e.g. info, debug, warning (default: %(default)s)")
2929

3030
io_params = parser.add_argument_group("Separation I/O Params")
31-
io_params.add_argument("--model_filename", default="UVR-MDX-NET-Inst_HQ_3.onnx", help="model to use for separation (default: %(default)s). Example: --model_filename=2_HP-UVR.pth")
31+
io_params.add_argument("-m", "--model_filename", default="UVR-MDX-NET-Inst_HQ_3.onnx", help="model to use for separation (default: %(default)s). Example: -m 2_HP-UVR.pth")
3232
io_params.add_argument("--output_format", default="FLAC", help="output format for separated files, any common format (default: %(default)s). Example: --output_format=MP3")
3333
io_params.add_argument("--output_dir", default=None, help="directory to write output files (default: <current dir>). Example: --output_dir=/app/separated")
3434
io_params.add_argument("--model_file_dir", default="/tmp/audio-separator-models/", help="model files directory (default: %(default)s). Example: --model_file_dir=/app/models")

0 commit comments

Comments
 (0)