petermg commited on
Commit
1cb584d
·
1 Parent(s): 62560ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -132,6 +132,7 @@ def process_3d(
132
  # sanitize 3d viewer glb path to keep babylon.js happy
133
  path_viewer_glb_sanitized = os.path.join(os.path.dirname(path_viewer_glb), "preview.glb")
134
  if path_viewer_glb_sanitized != path_viewer_glb:
 
135
  os.rename(path_viewer_glb, path_viewer_glb_sanitized)
136
  path_viewer_glb = path_viewer_glb_sanitized
137
 
@@ -205,13 +206,12 @@ def run_demo_server(pipe):
205
  step=1,
206
  value=10,
207
  )
208
- processing_res = gr.Radio(
209
- [
210
- ("Native", 0),
211
- ("Recommended", 768),
212
- ],
213
- label="Processing resolution",
214
- value=768,
215
  )
216
  input_output_16bit = gr.File(
217
  label="Predicted depth (16-bit)",
@@ -286,7 +286,7 @@ def run_demo_server(pipe):
286
  size_longest_px = gr.Slider(
287
  label="Size (px) of the longest side",
288
  minimum=256,
289
- maximum=1024,
290
  step=256,
291
  value=512,
292
  )
@@ -300,8 +300,8 @@ def run_demo_server(pipe):
300
  filter_size = gr.Slider(
301
  label="Size (px) of the smoothing filter",
302
  minimum=1,
303
- maximum=5,
304
- step=2,
305
  value=3,
306
  )
307
  frame_thickness = gr.Slider(
 
132
  # sanitize 3d viewer glb path to keep babylon.js happy
133
  path_viewer_glb_sanitized = os.path.join(os.path.dirname(path_viewer_glb), "preview.glb")
134
  if path_viewer_glb_sanitized != path_viewer_glb:
135
+ os.remove(path_viewer_glb_sanitized)
136
  os.rename(path_viewer_glb, path_viewer_glb_sanitized)
137
  path_viewer_glb = path_viewer_glb_sanitized
138
 
 
206
  step=1,
207
  value=10,
208
  )
209
+ processing_res = gr.Slider(
210
+ label="Processing resolution (Select 0 for Native Resolution)",
211
+ minimum=0,
212
+ maximum=4096,
213
+ step=256,
214
+ value=1024,
 
215
  )
216
  input_output_16bit = gr.File(
217
  label="Predicted depth (16-bit)",
 
286
  size_longest_px = gr.Slider(
287
  label="Size (px) of the longest side",
288
  minimum=256,
289
+ maximum=4096,
290
  step=256,
291
  value=512,
292
  )
 
300
  filter_size = gr.Slider(
301
  label="Size (px) of the smoothing filter",
302
  minimum=1,
303
+ maximum=50,
304
+ step=1,
305
  value=3,
306
  )
307
  frame_thickness = gr.Slider(