alexnasa commited on
Commit
f63c9d3
·
verified ·
1 Parent(s): 85d9aa0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +42 -42
app.py CHANGED
@@ -294,50 +294,50 @@ if __name__ == "__main__":
294
  pan_speed=0.5,
295
  camera_position=[20, 20, 20],
296
  )
297
-
298
- examples = [
299
- ["examples/video/re10k_1eca36ec55b88fe4.mp4"],
300
- ["examples/video/bungeenerf_colosseum.mp4"],
301
- ["examples/video/fox.mp4"],
302
- ["examples/video/matrixcity_street.mp4"],
303
- ["examples/video/vrnerf_apartment.mp4"],
304
- # [None, "examples/video/vrnerf_kitchen.mp4", "vrnerf", "kitchen", "17", "Real", "True",],
305
- # [None, "examples/video/vrnerf_riverview.mp4", "vrnerf", "riverview", "12", "Real", "True",],
306
- # [None, "examples/video/vrnerf_workshop.mp4", "vrnerf", "workshop", "32", "Real", "True",],
307
- # [None, "examples/video/fillerbuster_ramen.mp4", "fillerbuster", "ramen", "32", "Real", "True",],
308
- # [None, "examples/video/meganerf_rubble.mp4", "meganerf", "rubble", "10", "Real", "True",],
309
- # [None, "examples/video/llff_horns.mp4", "llff", "horns", "12", "Real", "True",],
310
- # [None, "examples/video/llff_fortress.mp4", "llff", "fortress", "7", "Real", "True",],
311
- # [None, "examples/video/dtu_scan_106.mp4", "dtu", "scan_106", "20", "Real", "True",],
312
- # [None, "examples/video/horizongs_hillside_summer.mp4", "horizongs", "hillside_summer", "55", "Synthetic", "True",],
313
- # [None, "examples/video/kitti360.mp4", "kitti360", "kitti360", "64", "Real", "True",],
314
- ]
315
-
316
- gr.Examples(
317
- examples=examples,
318
- inputs=[
319
- input_video
320
- ],
321
- outputs=[
322
- reconstruction_output,
323
- rgb_video,
324
- depth_video,
325
- image_gallery
326
- ],
327
- fn=generate_splat_from_video,
328
- cache_examples=True,
329
- )
330
 
331
  with gr.Row():
332
- with gr.Row():
333
- rgb_video = gr.Video(
334
- label="RGB Video", interactive=False, autoplay=True
335
- )
336
- depth_video = gr.Video(
337
- label="Depth Video",
338
- interactive=False,
339
- autoplay=True,
340
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
 
342
  submit_btn.click(
343
  fn=generate_splat_from_images,
 
294
  pan_speed=0.5,
295
  camera_position=[20, 20, 20],
296
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
297
 
298
  with gr.Row():
299
+ rgb_video = gr.Video(
300
+ label="RGB Video", interactive=False, autoplay=True
301
+ )
302
+ depth_video = gr.Video(
303
+ label="Depth Video",
304
+ interactive=False,
305
+ autoplay=True,
306
+ )
307
+ with gr.Row():
308
+ examples = [
309
+ ["examples/video/re10k_1eca36ec55b88fe4.mp4"],
310
+ ["examples/video/bungeenerf_colosseum.mp4"],
311
+ ["examples/video/fox.mp4"],
312
+ ["examples/video/matrixcity_street.mp4"],
313
+ ["examples/video/vrnerf_apartment.mp4"],
314
+ # [None, "examples/video/vrnerf_kitchen.mp4", "vrnerf", "kitchen", "17", "Real", "True",],
315
+ # [None, "examples/video/vrnerf_riverview.mp4", "vrnerf", "riverview", "12", "Real", "True",],
316
+ # [None, "examples/video/vrnerf_workshop.mp4", "vrnerf", "workshop", "32", "Real", "True",],
317
+ # [None, "examples/video/fillerbuster_ramen.mp4", "fillerbuster", "ramen", "32", "Real", "True",],
318
+ # [None, "examples/video/meganerf_rubble.mp4", "meganerf", "rubble", "10", "Real", "True",],
319
+ # [None, "examples/video/llff_horns.mp4", "llff", "horns", "12", "Real", "True",],
320
+ # [None, "examples/video/llff_fortress.mp4", "llff", "fortress", "7", "Real", "True",],
321
+ # [None, "examples/video/dtu_scan_106.mp4", "dtu", "scan_106", "20", "Real", "True",],
322
+ # [None, "examples/video/horizongs_hillside_summer.mp4", "horizongs", "hillside_summer", "55", "Synthetic", "True",],
323
+ # [None, "examples/video/kitti360.mp4", "kitti360", "kitti360", "64", "Real", "True",],
324
+ ]
325
+
326
+ gr.Examples(
327
+ examples=examples,
328
+ inputs=[
329
+ input_video
330
+ ],
331
+ outputs=[
332
+ reconstruction_output,
333
+ rgb_video,
334
+ depth_video,
335
+ image_gallery
336
+ ],
337
+ fn=generate_splat_from_video,
338
+ cache_examples=True,
339
+ )
340
+
341
 
342
  submit_btn.click(
343
  fn=generate_splat_from_images,