提交 cd662a08 编写于 作者: 小湉湉's avatar 小湉湉

fix for load specified model files

上级 b9ade180
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册