The URLs of data for pretrained models not pointing to https
The location of the data changed, however the URL haven't been updated in the repository.
E.g.:
/pretrainedmodels/models/resnext.py
pretrained_settings = {
'resnext101_32x4d': {
'imagenet': {
'url': 'http://data.lip6.fr/cadene/pretrainedmodels/resnext101_32x4d-29e315fa.pth',
'input_space': 'RGB',
'input_size': [3, 224, 224],
'input_range': [0, 1],
'mean': [0.485, 0.456, 0.406],
'std': [0.229, 0.224, 0.225],
'num_classes': 1000
}
},
'resnext101_64x4d': {
'imagenet': {
'url': 'http://data.lip6.fr/cadene/pretrainedmodels/resnext101_64x4d-e77a0586.pth',
'input_space': 'RGB',
'input_size': [3, 224, 224],
'input_range': [0, 1],
'mean': [0.485, 0.456, 0.406],
'std': [0.229, 0.224, 0.225],
'num_classes': 1000
}
}
}
The URLs should point to https
They are actually not a secure (HTTPS) website. If you try for example, to copy in the URL to you browser and manually add the "s", it will (probably) work, but will actually redirect you to the HTTP URL. My work-around is to manually download the model through a browser, then move it to the .cache/torch/hub/checkpoints. This is the default download location that will be populated with models as they are downloaded. If the model is there, regardless of how it arrived, the attempt to access an insecure HTTP URL is skipped.