perler commited on
Commit
18a0a54
1 Parent(s): 1b7c916

bugfix for click event

Browse files
Files changed (1) hide show
  1. app.py +12 -4
app.py CHANGED
@@ -11,13 +11,21 @@ import spaces
11
 
12
 
13
  @spaces.GPU(duration=60 * 3)
14
- def run_on_gpu(input_shape):
 
 
 
 
15
  print('Started inference at {}'.format(datetime.datetime.now()))
16
  call_base = ['python', 'ppsurf/pps.py', 'rec']
17
  call_args = ['pps.py',
18
  'rec',
19
- 'data/{}'.format(input_shape),
20
- 'results/rec/{}'.format(input_shape),
 
 
 
 
21
  ]
22
  res = subprocess.check_output(call_base + call_args)
23
  print('Finished inference at {}'.format(datetime.datetime.now()))
@@ -89,7 +97,7 @@ def main():
89
  minimum=17, maximum=513, value=129, step=2)
90
  padding_factor = gr.Slider(
91
  label='Padding Factor (larger if object is cut off at boundaries)',
92
- minimum=0, maximum=1.0, value=0.05, step=1)
93
  gen_subsample_manifold_iter = gr.Slider(
94
  label='Subsample Manifold Iterations (larger for larger point clouds)',
95
  minimum=3, maximum=30, value=10, step=1)
 
11
 
12
 
13
  @spaces.GPU(duration=60 * 3)
14
+ def run_on_gpu(input_point_cloud_viewer,
15
+ gen_resolution_global,
16
+ padding_factor,
17
+ gen_subsample_manifold_iter,
18
+ gen_refine_iter):
19
  print('Started inference at {}'.format(datetime.datetime.now()))
20
  call_base = ['python', 'ppsurf/pps.py', 'rec']
21
  call_args = ['pps.py',
22
  'rec',
23
+ 'data/{}'.format(input_point_cloud_viewer),
24
+ 'results/rec/{}'.format(input_point_cloud_viewer),
25
+ '--gen_resolution_global', str(gen_resolution_global),
26
+ '--padding_factor', str(padding_factor),
27
+ '--gen_subsample_manifold_iter', str(gen_subsample_manifold_iter),
28
+ '--gen_refine_iter', str(gen_refine_iter),
29
  ]
30
  res = subprocess.check_output(call_base + call_args)
31
  print('Finished inference at {}'.format(datetime.datetime.now()))
 
97
  minimum=17, maximum=513, value=129, step=2)
98
  padding_factor = gr.Slider(
99
  label='Padding Factor (larger if object is cut off at boundaries)',
100
+ minimum=0, maximum=1.0, value=0.05, step=0.05)
101
  gen_subsample_manifold_iter = gr.Slider(
102
  label='Subsample Manifold Iterations (larger for larger point clouds)',
103
  minimum=3, maximum=30, value=10, step=1)