Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ model = model.to(DEVICE).eval()
|
|
| 43 |
|
| 44 |
title = "# Pixel-Perfect Depth"
|
| 45 |
description = """Official demo for **Pixel-Perfect Depth**.
|
| 46 |
-
Please refer to our [paper](
|
| 47 |
|
| 48 |
@spaces.GPU
|
| 49 |
def predict_depth(image):
|
|
@@ -66,7 +66,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 66 |
def on_submit(image):
|
| 67 |
original_image = image.copy()
|
| 68 |
|
| 69 |
-
|
| 70 |
|
| 71 |
depth = predict_depth(image[:, :, ::-1])
|
| 72 |
|
|
|
|
| 43 |
|
| 44 |
title = "# Pixel-Perfect Depth"
|
| 45 |
description = """Official demo for **Pixel-Perfect Depth**.
|
| 46 |
+
Please refer to our [paper](), [project page](https://pixel-perfect-depth.github.io), and [github](https://github.com/gangweix/pixel-perfect-depth) for more details."""
|
| 47 |
|
| 48 |
@spaces.GPU
|
| 49 |
def predict_depth(image):
|
|
|
|
| 66 |
def on_submit(image):
|
| 67 |
original_image = image.copy()
|
| 68 |
|
| 69 |
+
h, w = image.shape[:2]
|
| 70 |
|
| 71 |
depth = predict_depth(image[:, :, ::-1])
|
| 72 |
|