Krokodilpirat commited on
Commit
2d7c3b2
·
verified ·
1 Parent(s): 6d6b641

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -180,7 +180,7 @@ def construct_demo():
180
  stitch_option = gr.Checkbox(label="Stitch RGB & Depth Videos", value=True)
181
  grayscale_option = gr.Checkbox(label="Output Depth as Grayscale", value=True)
182
  convert_from_color_option = gr.Checkbox(label="Convert Grayscale from Color", value=True)
183
- blur_slider = gr.Slider(minimum=0, maximum=1, step=0.01, label="Depth Blur (can reduce edge artifacts)", value=0.3)
184
  generate_btn = gr.Button("Generate")
185
  with gr.Column(scale=2):
186
  pass
@@ -190,7 +190,7 @@ def construct_demo():
190
  inputs=[input_video, max_len, target_fps, max_res, stitch_option, grayscale_option, convert_from_color_option, blur_slider],
191
  outputs=[processed_video, depth_vis_video, stitched_video],
192
  fn=infer_video_depth,
193
- cache_examples=True,
194
  cache_mode="lazy",
195
  )
196
 
 
180
  stitch_option = gr.Checkbox(label="Stitch RGB & Depth Videos", value=True)
181
  grayscale_option = gr.Checkbox(label="Output Depth as Grayscale", value=True)
182
  convert_from_color_option = gr.Checkbox(label="Convert Grayscale from Color", value=True)
183
+ blur_slider = gr.Slider(minimum=0, maximum=1, step=0.01, label="Depth Blur (can reduce edge artifacts on display)", value=0.3)
184
  generate_btn = gr.Button("Generate")
185
  with gr.Column(scale=2):
186
  pass
 
190
  inputs=[input_video, max_len, target_fps, max_res, stitch_option, grayscale_option, convert_from_color_option, blur_slider],
191
  outputs=[processed_video, depth_vis_video, stitched_video],
192
  fn=infer_video_depth,
193
+ cache_examples=False,
194
  cache_mode="lazy",
195
  )
196