未验证 提交 5f0f76f2 编写于 作者: 小湉湉's avatar 小湉湉 提交者: GitHub

add eval() for inference model (#1114)

上级 f40d4a1c
......@@ -461,6 +461,7 @@ class TTSExecutor(BaseExecutor):
am_std = paddle.to_tensor(am_std)
am_normalizer = ZScore(am_mu, am_std)
self.am_inference = am_inference_class(am_normalizer, am)
self.am_inference.eval()
print("acoustic model done!")
# vocoder
......@@ -478,6 +479,7 @@ class TTSExecutor(BaseExecutor):
voc_std = paddle.to_tensor(voc_std)
voc_normalizer = ZScore(voc_mu, voc_std)
self.voc_inference = voc_inference_class(voc_normalizer, voc)
self.voc_inference.eval()
print("voc done!")
def preprocess(self, input: Any, *args, **kwargs):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册