File "predict.py", line 67, in
net.cuda()
File "/root/miniconda3/envs/RRU2/lib/python3.7/site-packages/torch/serialization.py", line 367, in load
return _load(f, map_location, pickle_module)
File "/root/miniconda3/envs/RRU2/lib/python3.7/site-packages/torch/serialization.py", line 528, in _load
magic_number = pickle_module.load(f)
_pickle.UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified.
您好,我在尝试运行项目中的predict.py时遇到了一些问题:
项目环境是:python3.7, torch1.0.0,使用best_model.pth作为输入模型 运行后遇到报错(指定cpu或者cuda均会报同一错误):
请问您知道这个报错的解决方案吗?十分感谢🙇