KurtLin commited on
Commit
799e107
·
1 Parent(s): ef16738

Initial Commit

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -52,15 +52,16 @@ with my_app:
52
  with gr.Column():
53
  with gr.Row():
54
  img_source = gr.Image(label="Please select picture and click the part to segment",
55
- value='./images/truck.jpg', shape=(1024, 1024))
56
  with gr.Row():
57
  coords = gr.Label(label="Image Coordinate")
58
- model_choice = gr.Dropdown(['ViT-base', 'ViT-large', 'ViT-huge'], label='Model Backbone')
 
 
59
  with gr.Row():
60
- infer = gr.Button(label="Segment")
61
  score = gr.Label(label="Mask Confidence")
62
  with gr.Row():
63
- img_output = gr.Image(label="Output Mask", shape=(1024, 1024))
64
 
65
  img_source.select(get_coords, [], coords)
66
  infer.click(
 
52
  with gr.Column():
53
  with gr.Row():
54
  img_source = gr.Image(label="Please select picture and click the part to segment",
55
+ value='./images/truck.jpg').style(height=500, width=1000)
56
  with gr.Row():
57
  coords = gr.Label(label="Image Coordinate")
58
+ with gr.Column():
59
+ model_choice = gr.Dropdown(['ViT-base', 'ViT-large', 'ViT-huge'], label='Model Backbone')
60
+ infer = gr.Button(label="Segment")
61
  with gr.Row():
 
62
  score = gr.Label(label="Mask Confidence")
63
  with gr.Row():
64
+ img_output = gr.Image(label="Output Mask").style(height=500, width=1000)
65
 
66
  img_source.select(get_coords, [], coords)
67
  infer.click(