Spaces:
Starting
Starting
Update app.py
Browse files
app.py
CHANGED
@@ -222,7 +222,8 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits', remove_bg
|
|
222 |
continue
|
223 |
thumbnail_old = thumbnail
|
224 |
else:
|
225 |
-
|
|
|
226 |
n = 0 #n = count-int(cframes/2)
|
227 |
|
228 |
depth_color_bg = cv2.imread(f"f{n}_dmap.png").astype(np.uint8)
|
|
|
222 |
continue
|
223 |
thumbnail_old = thumbnail
|
224 |
else:
|
225 |
+
#actual fg video is made out of odd (scene) and even (bg) frames stacked separately in same file
|
226 |
+
if count >= 1: #int(cframes/2):
|
227 |
n = 0 #n = count-int(cframes/2)
|
228 |
|
229 |
depth_color_bg = cv2.imread(f"f{n}_dmap.png").astype(np.uint8)
|