Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,6 +52,10 @@ def stitch_rgbd_videos(
|
|
52 |
|
53 |
depth_norm = np.clip(depth_norm, 0, 255)
|
54 |
|
|
|
|
|
|
|
|
|
55 |
# Generate depth visualization:
|
56 |
if grayscale:
|
57 |
if convert_from_color:
|
|
|
52 |
|
53 |
depth_norm = np.clip(depth_norm, 0, 255)
|
54 |
|
55 |
+
# Ensure depth_norm is 2D (remove singleton dimensions if present)
|
56 |
+
if depth_norm.ndim == 3:
|
57 |
+
depth_norm = np.squeeze(depth_norm)
|
58 |
+
|
59 |
# Generate depth visualization:
|
60 |
if grayscale:
|
61 |
if convert_from_color:
|