freealise commited on
Commit
d8453b9
1 Parent(s): 7ab31cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -178,8 +178,9 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits'):
178
  global frames
179
  frames = orig_frames
180
  depths = depth_frames
181
-
182
- if masks[len(masks)-1].shape[0] == 4096:
 
183
  masks[len(masks)-1] = cv2.imread('gradient_large.png')
184
  depth_frames[len(masks)-1] = cv2.imread('gradient_large.png')
185
  else:
 
178
  global frames
179
  frames = orig_frames
180
  depths = depth_frames
181
+
182
+ print(depth_color.shape[0])
183
+ if depth_color.shape[0] == 4096:
184
  masks[len(masks)-1] = cv2.imread('gradient_large.png')
185
  depth_frames[len(masks)-1] = cv2.imread('gradient_large.png')
186
  else: