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 18’)
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'))