yeyupiaoling / MASR

Pytorch实现的流式与非流式的自动语音识别框架,同时兼容在线和离线识别,目前支持Conformer、Squeezeformer、DeepSpeech2模型,支持多种数据增强方法。
Apache License 2.0
562 stars 100 forks source link

RuntimeError: PytorchStreamReader failed locating file constants.pkl: file not found #57

Closed eeric closed 1 year ago

eeric commented 1 year ago

原因是:AIShell 里面4个模型用到的torch版本,与自己的不一致

yeyupiaoling commented 1 year ago

请导出模型使用。

eeric commented 1 year ago

以下2个模型可以导出 MASR_V2-conformer_streaming-fbank-AIShell MASR_V2-deepspeech2_streaming-fbank-AIShell 遗憾的是: MASR_V2-efficient_conformer_streaming-fbank-AIShell MASR_V2-squeezeformer_streaming-fbank-AIShell 导出时报错,是模型定义不一致

yeyupiaoling commented 1 year ago

提问题要把错误信息粘出来。

我的猜测应该是你没把配置文件复制进去。