Update README.md
Browse files
README.md
CHANGED
@@ -25,7 +25,7 @@ model_configs = {
|
|
25 |
'vitl': {'encoder': 'vitl', 'features': 256, 'out_channels': [256, 512, 1024, 1024]},
|
26 |
}
|
27 |
|
28 |
-
encoder = '
|
29 |
|
30 |
model = DepthAnythingV2(**model_configs[encoder])
|
31 |
model.load_state_dict(torch.load(f'depth_anything_v2_{encoder}.pth?download=true', map_location='cpu'))
|
|
|
25 |
'vitl': {'encoder': 'vitl', 'features': 256, 'out_channels': [256, 512, 1024, 1024]},
|
26 |
}
|
27 |
|
28 |
+
encoder = 'vitl' # or 'vits', 'vitb'
|
29 |
|
30 |
model = DepthAnythingV2(**model_configs[encoder])
|
31 |
model.load_state_dict(torch.load(f'depth_anything_v2_{encoder}.pth?download=true', map_location='cpu'))
|