JUGGHM commited on
Commit
b696ba4
·
verified ·
1 Parent(s): 708c129

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -80,7 +80,7 @@ def depth_normal(img, model_selection="vit-small"):
80
 
81
  pred_normal = output['normal_out_list'][0][:, :3, :, :]
82
  H, W = pred_normal.shape[2:]
83
- pred_normal[:, :, pad[0]:H-pad[1], pad[2]:W-pad[3]]
84
 
85
  pred_depth = pred_depth.squeeze().cpu().numpy()
86
  pred_depth[pred_depth<0] = 0
 
80
 
81
  pred_normal = output['normal_out_list'][0][:, :3, :, :]
82
  H, W = pred_normal.shape[2:]
83
+ pred_normal = pred_normal[:, :, pad[0]:H-pad[1], pad[2]:W-pad[3]]
84
 
85
  pred_depth = pred_depth.squeeze().cpu().numpy()
86
  pred_depth[pred_depth<0] = 0