def test_split_hparams_string(self): hp_str = "test=123,abc=cde" res = split_hparams_string(hp_str) self.assertEqual(2, len(res)) self.assertEqual("123", res["test"]) self.assertEqual("cde", res["abc"])
def validate_cli(**args): args["custom_tacotron_hparams"] = split_hparams_string( args["custom_tacotron_hparams"]) args["custom_waveglow_hparams"] = split_hparams_string( args["custom_waveglow_hparams"]) validate_main(**args)
def test_split_hparams_string_none__returns_none(self): hp_str = None res = split_hparams_string(hp_str) self.assertIsNone(res)
def train_cli(**args): args["custom_hparams"] = split_hparams_string(args["custom_hparams"]) train_main(**args)
def continue_train_cli(**args): args["custom_hparams"] = split_hparams_string(args["custom_hparams"]) continue_train_main(**args)
def infer_cli(**args): args["custom_tacotron_hparams"] = split_hparams_string( args["custom_tacotron_hparams"]) args["custom_waveglow_hparams"] = split_hparams_string( args["custom_waveglow_hparams"]) infer_main(**args)
def eval_checkpoints_main_cli(**args): args["custom_hparams"] = split_hparams_string(args["custom_hparams"]) eval_checkpoints_main(**args)
def infer_cli(**args): args["custom_hparams"] = split_hparams_string(args["custom_hparams"]) infer(**args)
def validate_cli(**args): args["custom_hparams"] = split_hparams_string(args["custom_hparams"]) validate(**args)
def train_cli(**args): args["custom_hparams"] = split_hparams_string(args["custom_hparams"]) start_new_training(**args)
def preprocess_mels_cli(**args): args["custom_hparams"] = split_hparams_string(args["custom_hparams"]) preprocess_mels(**args)
def plot_mels_cli(**args): args["custom_hparams"] = split_hparams_string(args["custom_hparams"]) plot_mels(**args)