[feature request] torch.hub.load_state_dict_from_url to be replaced by a new good general download-a-file function and to also support local paths and google drive links / private github release links · Issue #73466 · pytorch/pytorch · GitHub
8000
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[feature request] torch.hub.load_state_dict_from_url to be replaced by a new good general download-a-file function and to also support local paths and google drive links / private github release links #73466
It's useful to be able to load pretrained weights via a single-stop method without making checks if it's a url or a local path.
Another useful feature would be to support some cloud storage links. Currently I have this automated way to donload from Google Drive. It has been working for a few years, so the API is kind of stable. One way to account for API changes could be a mandatory opt-in flag enable_best_effort_cloud_links_download=True. This will save some boiler plate in research code.