diff --git a/paddlespeech/cli/tts/infer.py b/paddlespeech/cli/tts/infer.py index 4d5ddb75..c8d5447e 100644 --- a/paddlespeech/cli/tts/infer.py +++ b/paddlespeech/cli/tts/infer.py @@ -364,7 +364,7 @@ class TTSExecutor(BaseExecutor): else: self.am_ckpt = os.path.abspath(am_ckpt[0]) self.phones_dict = os.path.abspath(phones_dict) - self.am_res_path = os.path.dirname(os.path.abspath(am_ckpt)) + self.am_res_path = os.path.dirname(os.path.abspath(self.am_ckpt)) self.am_fs = fs # for speedyspeech @@ -404,7 +404,6 @@ class TTSExecutor(BaseExecutor): # frontend self.frontend = get_frontend( lang=lang, phones_dict=self.phones_dict, tones_dict=self.tones_dict) - self.am_sess = get_sess( model_path=self.am_ckpt, device=device, cpu_threads=cpu_threads)