mirror of
https://github.com/wassname/TTS.git
synced 2026-09-06 16:30:13 +08:00
use relaxted coqpit parser
This commit is contained in:
@@ -28,7 +28,7 @@ def main():
|
||||
args, overrides = parser.parse_known_args()
|
||||
|
||||
CONFIG = load_config(args.config_path)
|
||||
CONFIG.parse_args(overrides)
|
||||
CONFIG.parse_known_args(overrides, relaxed_parser=True)
|
||||
|
||||
# load config
|
||||
CONFIG.audio.signal_norm = False # do not apply earlier normalization
|
||||
|
||||
@@ -144,7 +144,7 @@ def process_args(args):
|
||||
# setup output paths and read configs
|
||||
config = load_config(args.config_path)
|
||||
# override values from command-line args
|
||||
config.parse_args(coqpit_overrides)
|
||||
config.parse_known_args(coqpit_overrides, relaxed_parser=True)
|
||||
if config.mixed_precision:
|
||||
print(" > Mixed precision mode is ON")
|
||||
experiment_path = args.continue_path
|
||||
|
||||
Reference in New Issue
Block a user