Sandeepa commited on
Commit
39a4453
·
1 Parent(s): 3078f9c

Update depth_detection.py

Browse files
Files changed (1) hide show
  1. depth_detection.py +1 -0
depth_detection.py CHANGED
@@ -15,4 +15,5 @@ def depth_detection(image, pad=16):
15
 
16
  output = predicted_depth.squeeze().cpu().numpy() * 1000.0
17
  output = output[pad:-pad, pad:-pad]
 
18
  return new_img,output
 
15
 
16
  output = predicted_depth.squeeze().cpu().numpy() * 1000.0
17
  output = output[pad:-pad, pad:-pad]
18
+ image = image.crop((pad, pad, image.width - pad, image.height - pad))
19
  return new_img,output