From cd662a08e06477f89e07bb0a518c7a27ab94b20c Mon Sep 17 00:00:00 2001 From: TianYuan Date: Thu, 4 Aug 2022 03:18:16 +0000 Subject: [PATCH] fix for load specified model files --- paddlespeech/cli/tts/infer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)