freealise commited on
Commit
71937bb
1 Parent(s): e71bc6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -179,10 +179,10 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits'):
179
  frames = orig_frames
180
  depths = depth_frames
181
 
182
- if depth_color.shape[0] == 4096:
183
  masks[len(masks)-1] = './gradient_large.png'
184
  depth_frames[len(masks)-1] = './gradient_large.png'
185
- elif depth_color.shape[0] == 2048:
186
  masks[len(masks)-1] = './gradient.png'
187
  depth_frames[len(masks)-1] = './gradient.png'
188
  else:
 
179
  frames = orig_frames
180
  depths = depth_frames
181
 
182
+ if depth_color.shape[0] == 2048: #height
183
  masks[len(masks)-1] = './gradient_large.png'
184
  depth_frames[len(masks)-1] = './gradient_large.png'
185
+ elif depth_color.shape[0] == 1024:
186
  masks[len(masks)-1] = './gradient.png'
187
  depth_frames[len(masks)-1] = './gradient.png'
188
  else: