Update depth_anything.py

This commit is contained in:
Lihe Yang
2024-01-25 21:22:44 +08:00
committed by GitHub
parent 801910678a
commit 5935968f82

View File

@@ -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})