Open BINOFL opened 2 months ago
That error suggests HugginFace denies requests (ie, you are sending too many requests from the same IP address in a short time).
You can try using TorchHub as a possible solution:
version = "v2"
backbone = "vitl14"
model = torch.hub.load("lpiccinelli-eth/UniDepth", "UniDepth", version=version, backbone=backbone, pretrained=True, trust_repo=True, force_reload=True)
today when I use
model = UniDepthV2.from_pretrained("lpiccinelli/unidepth-v2-vitl14")
, it occurs the problem below, is this occurs because every time when i want to use unidepth pretrained model the code need to download some configs files from website ? Yesterday the problem didnt happen.