Spaces:
Running
Running
Update app.py
Browse files
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",
|
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 |
-
|
150 |
with gr.Column(scale=1):
|
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,7 +169,7 @@ def construct_demo():
|
|
169 |
|
170 |
generate_btn.click(
|
171 |
fn=stitch_rgbd_videos,
|
172 |
-
inputs=[processed_video, depth_vis_video,
|
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 |
|