mtwohey2 commited on
Commit
3ed85f1
·
verified ·
1 Parent(s): e999ea2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -17,7 +17,6 @@ Please refer to our [paper](https://arxiv.org/abs/2501.12375), [project page](ht
17
  def stitch_rgbd_videos(
18
  processed_video: str,
19
  depth_vis_video: str,
20
- audio_video: str,
21
  max_len: int = -1,
22
  target_fps: int = -1,
23
  max_res: int = 1280,
@@ -122,7 +121,7 @@ def stitch_rgbd_videos(
122
  "ffmpeg",
123
  "-y",
124
  "-i", stitched_video_path,
125
- "-i", audio_video,
126
  "-c:v", "copy",
127
  "-c:a", "aac",
128
  "-map", "0:v:0",
@@ -145,10 +144,11 @@ def construct_demo():
145
  with gr.Row(equal_height=True):
146
  with gr.Column(scale=1):
147
  # Video input component for file upload.
148
- processed_video = gr.Video(label="Input Video")
149
- depth_vis_video = gr.Video(label="Depth Video")
150
  with gr.Column(scale=1):
151
- audio_video = gr.Video(label="Audio Source")
 
152
  with gr.Column(scale=2):
153
  with gr.Row(equal_height=True):
154
  stitched_video = gr.Video(label="Stitched RGBD Video", interactive=False, autoplay=True, loop=True, show_share_button=True, scale=5)
@@ -169,7 +169,7 @@ def construct_demo():
169
 
170
  generate_btn.click(
171
  fn=stitch_rgbd_videos,
172
- inputs=[processed_video, depth_vis_video, audio_video, max_len, target_fps, max_res, stitch_option, grayscale_option, convert_from_color_option, blur_slider],
173
  outputs=stitched_video,
174
  )
175
 
 
17
  def stitch_rgbd_videos(
18
  processed_video: str,
19
  depth_vis_video: str,
 
20
  max_len: int = -1,
21
  target_fps: int = -1,
22
  max_res: int = 1280,
 
121
  "ffmpeg",
122
  "-y",
123
  "-i", stitched_video_path,
124
+ "-i", processed_video,
125
  "-c:v", "copy",
126
  "-c:a", "aac",
127
  "-map", "0:v:0",
 
144
  with gr.Row(equal_height=True):
145
  with gr.Column(scale=1):
146
  # Video input component for file upload.
147
+ processed_video = gr.Video(label="Input Video with Audio")
148
+
149
  with gr.Column(scale=1):
150
+ depth_vis_video = gr.Video(label="Depth Video")
151
+
152
  with gr.Column(scale=2):
153
  with gr.Row(equal_height=True):
154
  stitched_video = gr.Video(label="Stitched RGBD Video", interactive=False, autoplay=True, loop=True, show_share_button=True, scale=5)
 
169
 
170
  generate_btn.click(
171
  fn=stitch_rgbd_videos,
172
+ inputs=[processed_video, depth_vis_video, max_len, target_fps, max_res, stitch_option, grayscale_option, convert_from_color_option, blur_slider],
173
  outputs=stitched_video,
174
  )
175