xinlongwang commited on
Commit
72e357f
1 Parent(s): 6d23ccc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -60,7 +60,7 @@ examples = [
60
  demo_mask = gr.Interface(fn=inference_mask1,
61
  inputs=[gr.ImageMask(brush_radius=8, label="prompt (提示图)"), gr.Image(label="img1 (测试图1)"), gr.Image(label="img2 (测试图2)")],
62
  #outputs=[gr.Image(shape=(448, 448), label="output1 (输出图1)"), gr.Image(shape=(448, 448), label="output2 (输出图2)")],
63
- outputs=[gr.Image(label="output1 (输出图1)").style(height=384, width=384), gr.Image(label="output2 (输出图2)").style(height=384, width=384)],
64
  #outputs=gr.Gallery(label="outputs (输出图)"),
65
  examples=examples,
66
  #title="SegGPT for Any Segmentation<br>(Painter Inside)",
@@ -69,7 +69,8 @@ demo_mask = gr.Interface(fn=inference_mask1,
69
  Or, upload by yourself: <br>\
70
  1. Upload images to be tested to 'img1' and/or 'img2'. <br>2. Upload a prompt image to 'prompt' and draw a mask. <br>\
71
  Tips: The more accurate you annotate, the more accurate the model predicts.;) <br>\
72
- 💎: Examples below were never trained and are randomly selected for testing in the wild. <br>\
 
73
  💎: Current UI interface just unleashes a small part of the capabilities of SegGPT, i.e., 1-shot case. \
74
  </p>",
75
  cache_examples=False,
 
60
  demo_mask = gr.Interface(fn=inference_mask1,
61
  inputs=[gr.ImageMask(brush_radius=8, label="prompt (提示图)"), gr.Image(label="img1 (测试图1)"), gr.Image(label="img2 (测试图2)")],
62
  #outputs=[gr.Image(shape=(448, 448), label="output1 (输出图1)"), gr.Image(shape=(448, 448), label="output2 (输出图2)")],
63
+ outputs=[gr.Image(label="output1 (输出图1)").style(height=224, width=224), gr.Image(label="output2 (输出图2)").style(height=224, width=224)],
64
  #outputs=gr.Gallery(label="outputs (输出图)"),
65
  examples=examples,
66
  #title="SegGPT for Any Segmentation<br>(Painter Inside)",
 
69
  Or, upload by yourself: <br>\
70
  1. Upload images to be tested to 'img1' and/or 'img2'. <br>2. Upload a prompt image to 'prompt' and draw a mask. <br>\
71
  Tips: The more accurate you annotate, the more accurate the model predicts.;) <br>\
72
+ <br> \
73
+ 💎: Examples below were never trained and are randomly selected for testing in the wild. <br>\
74
  💎: Current UI interface just unleashes a small part of the capabilities of SegGPT, i.e., 1-shot case. \
75
  </p>",
76
  cache_examples=False,