mtwohey2 commited on
Commit
3241598
·
verified ·
1 Parent(s): a2c8d72

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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: