RaynWu2002 commited on
Commit
c35ed0b
·
verified ·
1 Parent(s): 7167392

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -95,8 +95,8 @@ def infer(rgb_image: Image.Image, lr_depth: Image.Image, model_type: str):
95
  out, _ = net(x_query=lr, rgb=image)
96
 
97
  pred = out[0, 0] * (max_out - min_out) + min_out
98
- # pred = pred.cpu().numpy().astype(np.uint16)
99
- pred = pred.cpu().numpy().astype(np.uint8)
100
  # raw
101
  pred_gray = Image.fromarray(pred)
102
 
 
95
  out, _ = net(x_query=lr, rgb=image)
96
 
97
  pred = out[0, 0] * (max_out - min_out) + min_out
98
+ pred = pred.cpu().numpy().astype(np.uint16)
99
+
100
  # raw
101
  pred_gray = Image.fromarray(pred)
102