Update app.py
Browse files
app.py
CHANGED
@@ -302,46 +302,38 @@ if __name__ == "__main__":
|
|
302 |
|
303 |
# ---------------------- Examples section ----------------------
|
304 |
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
# depth_video,
|
338 |
-
# target_dir_output,
|
339 |
-
# image_gallery,
|
340 |
-
# ],
|
341 |
-
# fn=example_pipeline,
|
342 |
-
# cache_examples=False,
|
343 |
-
# examples_per_page=50,
|
344 |
-
# )
|
345 |
|
346 |
submit_btn.click(
|
347 |
fn=generate_splat_from_images,
|
|
|
302 |
|
303 |
# ---------------------- Examples section ----------------------
|
304 |
|
305 |
+
examples = [
|
306 |
+
["examples/video/re10k_1eca36ec55b88fe4.mp4"],
|
307 |
+
["examples/video/bungeenerf_colosseum.mp4"],
|
308 |
+
["examples/video/fox.mp4"],
|
309 |
+
["examples/video/matrixcity_street.mp4"],
|
310 |
+
# [None, "examples/video/vrnerf_apartment.mp4", "vrnerf", "apartment", "32", "Real", "True",],
|
311 |
+
# [None, "examples/video/vrnerf_kitchen.mp4", "vrnerf", "kitchen", "17", "Real", "True",],
|
312 |
+
# [None, "examples/video/vrnerf_riverview.mp4", "vrnerf", "riverview", "12", "Real", "True",],
|
313 |
+
# [None, "examples/video/vrnerf_workshop.mp4", "vrnerf", "workshop", "32", "Real", "True",],
|
314 |
+
# [None, "examples/video/fillerbuster_ramen.mp4", "fillerbuster", "ramen", "32", "Real", "True",],
|
315 |
+
# [None, "examples/video/meganerf_rubble.mp4", "meganerf", "rubble", "10", "Real", "True",],
|
316 |
+
# [None, "examples/video/llff_horns.mp4", "llff", "horns", "12", "Real", "True",],
|
317 |
+
# [None, "examples/video/llff_fortress.mp4", "llff", "fortress", "7", "Real", "True",],
|
318 |
+
# [None, "examples/video/dtu_scan_106.mp4", "dtu", "scan_106", "20", "Real", "True",],
|
319 |
+
# [None, "examples/video/horizongs_hillside_summer.mp4", "horizongs", "hillside_summer", "55", "Synthetic", "True",],
|
320 |
+
# [None, "examples/video/kitti360.mp4", "kitti360", "kitti360", "64", "Real", "True",],
|
321 |
+
]
|
322 |
|
323 |
+
gr.Examples(
|
324 |
+
examples=examples,
|
325 |
+
inputs=[
|
326 |
+
input_video
|
327 |
+
],
|
328 |
+
outputs=[
|
329 |
+
reconstruction_output,
|
330 |
+
rgb_video,
|
331 |
+
depth_video,
|
332 |
+
image_gallery
|
333 |
+
],
|
334 |
+
fn=generate_splat_from_video,
|
335 |
+
cache_examples=True,
|
336 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
337 |
|
338 |
submit_btn.click(
|
339 |
fn=generate_splat_from_images,
|