hhhhhh0103 commited on
Commit
1bcbd7b
β€’
1 Parent(s): fe9ff67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -240,15 +240,15 @@ examples = [
240
 
241
  gradio_app = gr.Interface(
242
  predict,
243
- inputs=gr.Image(label="Select hot dog candidate", sources=['upload', 'webcam'], type="pil"),
244
- outputs=[gr.Image(label="Processed Image"), gr.Label(label="Result", num_top_classes=2)],
245
  title="SAMReg: One Registration is Worth Two Segmentations",
246
  examples=examples,
247
  description="<p> \
248
  <strong>Register anything with ROI-based registration representation.</strong> <br>\
249
  Choose an example below &#128293; &#128293; &#128293; <br>\
250
  Or, upload by yourself: <br>\
251
- 1. Upload images to be tested to 'img1' and 'img2'. <br>2. Upload a prompt image to 'im1' and 'im2'. <br>\
252
  <br> \
253
  πŸ’Ž SAM segments the target with any point or scribble, then SegGPT segments all other images. <br>\
254
  πŸ’Ž Examples below were never trained and are randomly selected for testing in the wild. <br>\
 
240
 
241
  gradio_app = gr.Interface(
242
  predict,
243
+ inputs=[gr.Image(label="img1", sources=['upload', 'webcam'], type="pil"), gr.Image(label="img2", sources=['upload', 'webcam'], type="pil")]
244
+ outputs=[gr.Image(label="ROIs in img1"), gr.Image(label="ROIs in img2")],
245
  title="SAMReg: One Registration is Worth Two Segmentations",
246
  examples=examples,
247
  description="<p> \
248
  <strong>Register anything with ROI-based registration representation.</strong> <br>\
249
  Choose an example below &#128293; &#128293; &#128293; <br>\
250
  Or, upload by yourself: <br>\
251
+ 1. Upload images to be valided to 'img1' and 'img2'. <br>2. Upload images to 'im1' and 'im2'. <br>\
252
  <br> \
253
  πŸ’Ž SAM segments the target with any point or scribble, then SegGPT segments all other images. <br>\
254
  πŸ’Ž Examples below were never trained and are randomly selected for testing in the wild. <br>\