mirror of
https://github.com/huchenlei/Depth-Anything.git
synced 2026-03-13 13:29:46 +00:00
Update depth_anything.py
This commit is contained in:
@@ -338,7 +338,7 @@ class DepthAnythingCore(nn.Module):
|
||||
|
||||
depth_anything = DPT_DINOv2(out_channels=[256, 512, 1024, 1024], use_clstoken=False)
|
||||
|
||||
state_dict = torch.load('../checkpoints/depth_anything_vitl14.pth', map_location='cpu')
|
||||
state_dict = torch.load('./checkpoints/depth_anything_vitl14.pth', map_location='cpu')
|
||||
depth_anything.load_state_dict(state_dict)
|
||||
|
||||
kwargs.update({'keep_aspect_ratio': force_keep_ar})
|
||||
|
||||
Reference in New Issue
Block a user