Update app.py
Browse files
app.py
CHANGED
@@ -243,10 +243,10 @@ def make_video(video_path, outdir='./vis_video_depth', encoder='vits', blur_data
|
|
243 |
|
244 |
j=0
|
245 |
while j<len(orig_frames):
|
246 |
-
comb_frame = np.concatenate(cv2.imread(orig_frames, cv2.IMREAD_UNCHANGED), cv2.imread(depth_frames, cv2.IMREAD_UNCHANGED), axis=0)
|
247 |
|
248 |
-
cv2.imwrite(f"f{
|
249 |
-
comb_frames.append(f"f{
|
250 |
j=j+1
|
251 |
|
252 |
final_vid = create_video(comb_frames, frame_rate, "orig")
|
|
|
243 |
|
244 |
j=0
|
245 |
while j<len(orig_frames):
|
246 |
+
comb_frame = np.concatenate(cv2.imread(orig_frames[j], cv2.IMREAD_UNCHANGED), cv2.imread(depth_frames[j], cv2.IMREAD_UNCHANGED), axis=0)
|
247 |
|
248 |
+
cv2.imwrite(f"f{j}_comb.png", comb_frame)
|
249 |
+
comb_frames.append(f"f{j}_comb.png")
|
250 |
j=j+1
|
251 |
|
252 |
final_vid = create_video(comb_frames, frame_rate, "orig")
|