Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def make_video(video_path, outdir='./vis_video_depth',encoder='vitl'):
|
|
34 |
|
35 |
DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
|
36 |
# depth_anything = DepthAnything.from_pretrained('LiheYoung/depth_anything_{}14'.format(encoder)).to(DEVICE).eval()
|
37 |
-
depth_anything = pipeline(task = "depth-estimation", model=f"nielsr/depth-anything-{mapper[encoder]}"
|
38 |
|
39 |
# total_params = sum(param.numel() for param in depth_anything.parameters())
|
40 |
# print('Total parameters: {:.2f}M'.format(total_params / 1e6))
|
|
|
34 |
|
35 |
DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
|
36 |
# depth_anything = DepthAnything.from_pretrained('LiheYoung/depth_anything_{}14'.format(encoder)).to(DEVICE).eval()
|
37 |
+
depth_anything = pipeline(task = "depth-estimation", model=f"nielsr/depth-anything-{mapper[encoder]}")
|
38 |
|
39 |
# total_params = sum(param.numel() for param in depth_anything.parameters())
|
40 |
# print('Total parameters: {:.2f}M'.format(total_params / 1e6))
|