Update index.html to use .to_numpy, which was renamed in [email protected]
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -95,7 +95,7 @@ async def estimate(image_path, depth_scale):
|
|
| 95 |
}
|
| 96 |
|
| 97 |
# Construct the 3D model from the depth map and the RGB image
|
| 98 |
-
depth = predictions["predicted_depth"].
|
| 99 |
depth = invert_depth(depth)
|
| 100 |
depth = invert_xy(depth)
|
| 101 |
|
|
|
|
| 95 |
}
|
| 96 |
|
| 97 |
# Construct the 3D model from the depth map and the RGB image
|
| 98 |
+
depth = predictions["predicted_depth"].to_numpy()
|
| 99 |
depth = invert_depth(depth)
|
| 100 |
depth = invert_xy(depth)
|
| 101 |
|