From fd150c047ebcc3cb56338e24b1b660074cf9eadd Mon Sep 17 00:00:00 2001 From: nl <3210346136@qq.com> Date: Sat, 19 Jan 2019 11:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96data=5Fgenerator=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asrserver.py | 2 +- test.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/asrserver.py b/asrserver.py index 08f59a6..f671544 100644 --- a/asrserver.py +++ b/asrserver.py @@ -14,7 +14,7 @@ from LanguageModel import ModelLanguage datapath = './' modelpath = 'model_speech/' ms = ModelSpeech(datapath) -ms.LoadModel(modelpath + 'm251/speech_model251_e_0_step_117000.model') +ms.LoadModel(modelpath + 'm251/speech_model251_e_0_step_12000.model') ml = ModelLanguage('model_language') ml.LoadModel() diff --git a/test.py b/test.py index be94cb7..dbdcc7a 100644 --- a/test.py +++ b/test.py @@ -29,14 +29,14 @@ else: ms = ModelSpeech(datapath) #ms.LoadModel(modelpath + 'm22_2\\0\\speech_model22_e_0_step_257000.model') -ms.LoadModel(modelpath + 'm251\\speech_model251_e_0_step_411000.model') +ms.LoadModel(modelpath + 'm251\\speech_model251_e_0_step_117000.model') #ms.TestModel(datapath, str_dataset='test', data_count = 64, out_report = True) -#r = ms.RecognizeSpeech_FromFile('E:\\语音数据集\\ST-CMDS-20170001_1-OS\\20170001P00241I0052.wav') +r = ms.RecognizeSpeech_FromFile('D:\\语音数据集\\ST-CMDS-20170001_1-OS\\20170001P00241I0052.wav') #r = ms.RecognizeSpeech_FromFile('E:\语音数据集\ST-CMDS-20170001_1-OS\\20170001P00241I0053.wav') #r = ms.RecognizeSpeech_FromFile('E:\\语音数据集\\ST-CMDS-20170001_1-OS\\20170001P00020I0087.wav') #r = ms.RecognizeSpeech_FromFile('E:\\语音数据集\\wav\\train\\A11\\A11_167.WAV') -r = ms.RecognizeSpeech_FromFile('E:\\语音数据集\\wav\\test\\D4\\D4_750.wav') +#r = ms.RecognizeSpeech_FromFile('E:\\语音数据集\\wav\\test\\D4\\D4_750.wav') K.clear_session()