fix: 修复默认加载的文件名问题
This commit is contained in:
parent
4adc8e56e9
commit
6adc664de6
|
@ -45,6 +45,6 @@ feat = Spectrogram()
|
|||
evalue_data = DataLoader('dev')
|
||||
ms = ModelSpeech(sm251, feat, max_label_length=64)
|
||||
|
||||
ms.load_model('save_models/' + sm251.get_model_name() + '.h5')
|
||||
ms.load_model('save_models/' + sm251.get_model_name() + '.model.h5')
|
||||
ms.evaluate_model(data_loader=evalue_data, data_count=-1,
|
||||
out_report=True, show_ratio=True, show_per_step=100)
|
||||
|
|
|
@ -44,7 +44,7 @@ sm251 = SpeechModel251(
|
|||
feat = Spectrogram()
|
||||
ms = ModelSpeech(sm251, feat, max_label_length=64)
|
||||
|
||||
ms.load_model('save_models/' + sm251.get_model_name() + '.h5')
|
||||
ms.load_model('save_models/' + sm251.get_model_name() + '.model.h5')
|
||||
res = ms.recognize_speech_from_file('filename.wav')
|
||||
print('*[提示] 声学模型语音识别结果:\n',res)
|
||||
|
||||
|
|
Loading…
Reference in New Issue