Spaces:
zino36
/
Runtime error

yocabon commited on
Commit
1812a4b
1 Parent(s): 199b6b9

swap around params to make it more readable

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -84,7 +84,7 @@ def local_get_reconstructed_scene(filelist, min_conf_thr, matching_conf_thr,
84
  return filestate, outfile
85
 
86
 
87
- def run_example(snapshot, filelist, min_conf_thr, matching_conf_thr,as_pointcloud, cam_size, shared_intrinsics, **kw):
88
  return local_get_reconstructed_scene(filelist, min_conf_thr, matching_conf_thr, as_pointcloud, cam_size, shared_intrinsics, **kw)
89
 
90
  css = """.gradio-container {margin: 0 !important; min-width: 100%};"""
@@ -120,6 +120,7 @@ with gradio.Blocks(css=css, title=title, delete_cache=(gradio_delete_cache, grad
120
  examples=[
121
  [
122
  os.path.join(HERE_PATH, 'mast3r/assets/NLE_tower/FF5599FD-768B-431A-AB83-BDA5FB44CB9D-83120-000041DADDE35483.jpg'),
 
123
  [os.path.join(HERE_PATH, 'mast3r/assets/NLE_tower/01D90321-69C8-439F-B0B0-E87E7634741C-83120-000041DAE419D7AE.jpg'),
124
  os.path.join(
125
  HERE_PATH, 'mast3r/assets/NLE_tower/1AD85EF5-B651-4291-A5C0-7BDB7D966384-83120-000041DADF639E09.jpg'),
@@ -131,11 +132,10 @@ with gradio.Blocks(css=css, title=title, delete_cache=(gradio_delete_cache, grad
131
  HERE_PATH, 'mast3r/assets/NLE_tower/2679C386-1DC0-4443-81B5-93D7EDE4AB37-83120-000041DADB2EA917.jpg'),
132
  os.path.join(
133
  HERE_PATH, 'mast3r/assets/NLE_tower/CDBBD885-54C3-4EB4-9181-226059A60EE0-83120-000041DAE0C3D612.jpg'),
134
- os.path.join(HERE_PATH, 'mast3r/assets/NLE_tower/FF5599FD-768B-431A-AB83-BDA5FB44CB9D-83120-000041DADDE35483.jpg')],
135
- 1.5, 0.0, True, 0.2, False
136
  ]
137
  ],
138
- inputs=[snapshot, inputfiles, min_conf_thr, matching_conf_thr, as_pointcloud, cam_size, shared_intrinsics],
139
  outputs=[filestate, outmodel],
140
  fn=run_example,
141
  cache_examples="lazy",
 
84
  return filestate, outfile
85
 
86
 
87
+ def run_example(snapshot, min_conf_thr, matching_conf_thr,as_pointcloud, cam_size, shared_intrinsics, filelist, **kw):
88
  return local_get_reconstructed_scene(filelist, min_conf_thr, matching_conf_thr, as_pointcloud, cam_size, shared_intrinsics, **kw)
89
 
90
  css = """.gradio-container {margin: 0 !important; min-width: 100%};"""
 
120
  examples=[
121
  [
122
  os.path.join(HERE_PATH, 'mast3r/assets/NLE_tower/FF5599FD-768B-431A-AB83-BDA5FB44CB9D-83120-000041DADDE35483.jpg'),
123
+ 1.5, 0.0, True, 0.2, False,
124
  [os.path.join(HERE_PATH, 'mast3r/assets/NLE_tower/01D90321-69C8-439F-B0B0-E87E7634741C-83120-000041DAE419D7AE.jpg'),
125
  os.path.join(
126
  HERE_PATH, 'mast3r/assets/NLE_tower/1AD85EF5-B651-4291-A5C0-7BDB7D966384-83120-000041DADF639E09.jpg'),
 
132
  HERE_PATH, 'mast3r/assets/NLE_tower/2679C386-1DC0-4443-81B5-93D7EDE4AB37-83120-000041DADB2EA917.jpg'),
133
  os.path.join(
134
  HERE_PATH, 'mast3r/assets/NLE_tower/CDBBD885-54C3-4EB4-9181-226059A60EE0-83120-000041DAE0C3D612.jpg'),
135
+ os.path.join(HERE_PATH, 'mast3r/assets/NLE_tower/FF5599FD-768B-431A-AB83-BDA5FB44CB9D-83120-000041DADDE35483.jpg')]
 
136
  ]
137
  ],
138
+ inputs=[snapshot, min_conf_thr, matching_conf_thr, as_pointcloud, cam_size, shared_intrinsics, inputfiles],
139
  outputs=[filestate, outmodel],
140
  fn=run_example,
141
  cache_examples="lazy",