alexnasa commited on
Commit
e770f56
·
verified ·
1 Parent(s): 2375b22

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -39
app.py CHANGED
@@ -302,46 +302,38 @@ if __name__ == "__main__":
302
 
303
  # ---------------------- Examples section ----------------------
304
 
305
- # examples = [
306
- # [None, "examples/video/re10k_1eca36ec55b88fe4.mp4", "re10k", "1eca36ec55b88fe4", "2", "Real", "True",],
307
- # [None, "examples/video/bungeenerf_colosseum.mp4", "bungeenerf", "colosseum", "8", "Synthetic", "True",],
308
- # [None, "examples/video/fox.mp4", "InstantNGP", "fox", "14", "Real", "True",],
309
- # [None, "examples/video/matrixcity_street.mp4", "matrixcity", "street", "32", "Synthetic", "True",],
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_images,
327
- # input_video,
328
- # dataset_name,
329
- # scene_name,
330
- # num_images,
331
- # image_type,
332
- # is_example,
333
- # ],
334
- # outputs=[
335
- # reconstruction_output,
336
- # rgb_video,
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,