Closed gmberton closed 2 months ago
Thank you for your question, we removed the description of how to load from TorchHub from the README, to give more space to HuggingFace, but we will re-add it.
However, you can load it through TorchHub as:
version="v1"
backbone="ViTL14"
model = torch.hub.load("lpiccinelli-eth/UniDepth", "UniDepth", version=version, backbone=backbone, pretrained=True, trust_repo=True, force_reload=True)
you can look into hubconf.py
for more detail.
Could you release the models on torch.hub? It is quite simple to do and allows people to use your model with two lines of code, allowing more people to use your model and helping to spread your work! Once the model is on torch.hub, it is super simple to use without requiring any installation or cloning the repo, e.g. I did it for a model of my own, called CosPlace, which can be used just like this