解决预测一次后图没了的问题

This commit is contained in:
nl 2020-08-19 15:38:24 +08:00
parent 87a0ca090e
commit 1998073679
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ class ModelSpeech(): # 语音模型类
#print('r', r) #print('r', r)
r1 = r[0][0].eval(session=tf.compat.v1.Session()) r1 = r[0][0].eval(session=tf.compat.v1.Session())
tf.compat.v1.reset_default_graph() #tf.compat.v1.reset_default_graph()
return r1[0] return r1[0]
def RecognizeSpeech(self, wavsignal, fs): def RecognizeSpeech(self, wavsignal, fs):