freealise commited on
Commit
0ce6656
1 Parent(s): 29f2dbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- if count >= 1: #int(cframes/2):
 
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)