freealise commited on
Commit
0501944
1 Parent(s): f785ae9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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]}", device=1)
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))