Spaces:
Paused
Paused
Update app.py
Browse files
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
|