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