umuthopeyildirim commited on
Commit
b48db1d
·
1 Parent(s): 2a2d2f8

Remove unnecessary depth normalization

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -104,7 +104,6 @@ with gr.Blocks(css=css) as demo:
104
 
105
  pred_depth = pred_depth.cpu().numpy().squeeze()
106
 
107
- depth = (depth - depth.min()) / (depth.max() - depth.min()) * 255.0
108
  depth = pred_depth.cpu().numpy().astype(np.uint8)
109
  colored_depth = cv2.applyColorMap(
110
  depth, cv2.COLORMAP_INFERNO)[:, :, ::-1]
 
104
 
105
  pred_depth = pred_depth.cpu().numpy().squeeze()
106
 
 
107
  depth = pred_depth.cpu().numpy().astype(np.uint8)
108
  colored_depth = cv2.applyColorMap(
109
  depth, cv2.COLORMAP_INFERNO)[:, :, ::-1]