解决预测一次后图没了的问题
This commit is contained in:
parent
87a0ca090e
commit
1998073679
|
@ -324,7 +324,7 @@ class ModelSpeech(): # 语音模型类
|
|||
|
||||
#print('r', r)
|
||||
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]
|
||||
|
||||
def RecognizeSpeech(self, wavsignal, fs):
|
||||
|
|
Loading…
Reference in New Issue