28.02.2024, 10:00
The download of resnet101 is triggered by "fastai vision" in the files: presnet.py, xresnet.py, xresnet2.py
The function used is defined in torch.utils.model_zoo.load_url()
The logic is embedded in fastai version of Deoldify. More precisely in the function
While the use of the ".cache" is embedd directly in torch, I don't think that is possible to change this logic.
You can find more info here: https://pytorch.org/docs/stable/hub.html
In meanwhile I discovered that is not a problem to have "fastai==1.0.60" installed with vsdeoldify.
It was a problem for me during the development, but once all the "imports" are correctly assigned, the problem disappears.
I fixed some small issue in the package, I attached a new version.
Thanks,
Dan
The function used is defined in torch.utils.model_zoo.load_url()
The logic is embedded in fastai version of Deoldify. More precisely in the function
def xresnet101(pretrained=False, **kwargs):
"""Constructs a XResNet-101 model.
Args:
pretrained (bool): If True, returns a model pre-trained on ImageNet
"""
model = XResNet(Bottleneck, [3, 4, 23, 3], **kwargs)
if pretrained: model.load_state_dict(model_zoo.load_url(model_urls['xresnet101']))
return model
While the use of the ".cache" is embedd directly in torch, I don't think that is possible to change this logic.
You can find more info here: https://pytorch.org/docs/stable/hub.html
In meanwhile I discovered that is not a problem to have "fastai==1.0.60" installed with vsdeoldify.
It was a problem for me during the development, but once all the "imports" are correctly assigned, the problem disappears.
I fixed some small issue in the package, I attached a new version.
Thanks,
Dan