Pretrained Resnet

I’m trying to use pretrained resnet50.
But

net = resnet50.resnet50(pretrained=True)

occurs
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>

So I downloaded resnet model from here (‘https://download.pytorch.org/models/resnet50-19c8e357.pth’)
and loaded like this.
Is it correct way to use pretrained resnet50 model?

net = resnet50.resnet50(pretrained=False)
net.load_state_dict(torch.load('download_resnet.pth'))

Could you retry the download again, please?
I just tried to download the pretrained model using the first (and right) approach and it worked fine for me.

Same problem.
Maybe pytorch version is old. I’m using 1.1.0 v.

Anyway, what I got from above link is the pre-trained model?

That should be the right state_dict, yes.