Spaces:
Running
Running
Update app.py
Browse files
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] ==
|
183 |
masks[len(masks)-1] = './gradient_large.png'
|
184 |
depth_frames[len(masks)-1] = './gradient_large.png'
|
185 |
-
elif depth_color.shape[0] ==
|
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:
|