RuntimeError: PytorchStreamReader failed locating file constants.pkl: file not found
dianxin556 opened this issue · 2 comments
dianxin556 commented
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
yeyupiaoling commented
你没有导出模型吧?
dfmjndm commented
yeyupiaoling commented
不是这个项目的模型用不了的