Hi, I’m meeting a problem loading the pre-trained model of Resnet-50.
I just simply load the model and meet the following problem. I can’t find a solution to solve it.



import torchvision
res= torchvision.models.resnet50(pretrained=True)
Traceback (most recent call last):
File “”, line 1, in 
File “/home/hzha3251/.local/lib/python3.6/site-packages/torchvision/models/resnet.py”, line 261, in resnet50
**kwargs)
File “/home/hzha3251/.local/lib/python3.6/site-packages/torchvision/models/resnet.py”, line 223, in _resnet
progress=progress)
File “/home/hzha3251/.local/lib/python3.6/site-packages/torch/hub.py”, line 506, in load_state_dict_from_url
return torch.load(cached_file, map_location=map_location)
File “/home/hzha3251/.local/lib/python3.6/site-packages/torch/serialization.py”, line 529, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File “/home/hzha3251/.local/lib/python3.6/site-packages/torch/serialization.py”, line 692, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: unpickling stack underflow