Georg commited on
Commit
a7b86b6
·
1 Parent(s): 99beb4f

Hide camera intrinsics input fields in the UI for a cleaner interface

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -598,13 +598,10 @@ with gr.Blocks(title="FoundationPose Inference", theme=gr.themes.Soft()) as demo
598
  label="Mask Method"
599
  )
600
 
601
- gr.Markdown("### Camera Intrinsics")
602
- with gr.Row():
603
- est_fx = gr.Number(label="fx (focal length x)", value=193.13708498984758)
604
- est_fy = gr.Number(label="fy (focal length y)", value=193.13708498984758)
605
- with gr.Row():
606
- est_cx = gr.Number(label="cx (principal point x)", value=120.0)
607
- est_cy = gr.Number(label="cy (principal point y)", value=80.0)
608
 
609
  est_button = gr.Button("Estimate Pose", variant="primary")
610
 
 
598
  label="Mask Method"
599
  )
600
 
601
+ est_fx = gr.Number(label="fx (focal length x)", value=193.13708498984758, visible=False)
602
+ est_fy = gr.Number(label="fy (focal length y)", value=193.13708498984758, visible=False)
603
+ est_cx = gr.Number(label="cx (principal point x)", value=120.0, visible=False)
604
+ est_cy = gr.Number(label="cy (principal point y)", value=80.0, visible=False)
 
 
 
605
 
606
  est_button = gr.Button("Estimate Pose", variant="primary")
607