yeyupiaoling / MASR

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

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

Closed dianxin556 closed 1 year ago

dianxin556 commented 1 year ago

Traceback (most recent call last): File "/workspace/MASR/infer_server.py", line 55, in pun_model_dir=args.pun_model_dir) File "/workspace/MASR/masr/predict.py", line 87, in init use_gpu=self.use_gpu) File "/workspace/MASR/masr/infer_utils/inference_predictor.py", line 34, in init self.predictor = torch.jit.load(model_path) File "/opt/conda/lib/python3.7/site-packages/torch/jit/_serialization.py", line 162, in load cpp_module = torch._C.import_ir_module(cu, str(f), map_location, _extra_files) RuntimeError: PytorchStreamReader failed locating file constants.pkl: file not found image

yeyupiaoling commented 1 year ago

你没有导出模型吧?

yeyupiaoling commented 1 year ago

不是这个项目的模型用不了的