forked from dmlguq456/SepReformer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
32 lines (30 loc) · 880 Bytes
/
Copy pathrun.py
File metadata and controls
32 lines (30 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import argparse
import importlib
# Parse args
parser = argparse.ArgumentParser(
description="Command to start PIT training, configured by .yaml files")
parser.add_argument(
"--model",
type=str,
default="IQformer_v6_0_0",
dest="model",
help="Insert model name")
parser.add_argument(
"--engine-mode",
choices=["train", "test", "test_save", "infer_sample"],
default="train",
help="This option is used to chooose the mode")
parser.add_argument(
"--sample-file",
type=str,
default=None,
help="directoy for sample audio")
parser.add_argument(
"--out-wav-dir",
type=str,
default=None,
help="This option is used to specficy save directory for output wav file in test_wav mode")
args = parser.parse_args()
# Call target model
main_module = importlib.import_module(f"models.{args.model}.main")
main_module.main(args)