Closed kmatzen closed 2 years ago
Hi @kmatzen, this is indeed an issue if you are using the 1.9.1 stable or older versions. The specification of master branch is coming from pytorch repo. We did delete the master branch recently. There are two fixes possible for resolving this:
intel-isl/MiDaS
repo to download the model using the main branch:
resnet = torch.hub.load("facebookresearch/WSL-Images:main", "resnext101_32x8d_wsl")
refer to File "/<removed>/.cache/torch/hub/intel-isl_MiDaS_master/midas/midas_net.py", line 30, in __init__
in your error log.
torch.hub.load
function use the local copy.
Was the default branch recently renamed from
master
tomain
? This seems to break torch.hub loading unless you have a very recent build of pytorch installed. e.g., If you're on 1.9.1 Stable or 1.8.2 LTS and attempt to load a model such as MiDaS, it reports the following:Would it make sense to postpone renaming until after at least Stable has rolled out the required changes?
Here's some background on the issue. https://github.com/pytorch/pytorch/issues/63753