yeyupiaoling/MASR

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

dianxin556 opened this issue · 2 comments

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

同样的问题,使用的是他人预训练的模型
image
image