zino36 commited on
Commit
d9f0a4b
1 Parent(s): 192f0d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ encoder = 'vitl'
43
  model_name = encoder2name[encoder]
44
  model = DepthAnythingV2(**model_configs[encoder])
45
  #https://huggingface.co/spaces/LiheYoung/Depth-Anything/resolve/main/checkpoints_metric_depth/depth_anything_metric_depth_indoor.pt
46
- filepath = hf_hub_download(repo_id="spaces/LiheYoung/Depth-Anything", filename="checkpoints_metric_depth/depth_anything_metric_depth_indoor.pt", repo_type="model")
47
  state_dict = torch.load(filepath, map_location="cpu")
48
  model.load_state_dict(state_dict)
49
  model = model.to(DEVICE).eval()
 
43
  model_name = encoder2name[encoder]
44
  model = DepthAnythingV2(**model_configs[encoder])
45
  #https://huggingface.co/spaces/LiheYoung/Depth-Anything/resolve/main/checkpoints_metric_depth/depth_anything_metric_depth_indoor.pt
46
+ filepath = hf_hub_download(repo_id="LiheYoung/Depth-Anything", filename="checkpoints_metric_depth/depth_anything_metric_depth_indoor.pt", repo_type="model")
47
  state_dict = torch.load(filepath, map_location="cpu")
48
  model.load_state_dict(state_dict)
49
  model = model.to(DEVICE).eval()