Spaces:
Building
Building
Update app.py
Browse files
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 |
-
|
|
|
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:
|