Spaces:
Sleeping
Sleeping
hhhhhh0103
commited on
Commit
β’
1bcbd7b
1
Parent(s):
fe9ff67
Update app.py
Browse files
app.py
CHANGED
@@ -240,15 +240,15 @@ examples = [
|
|
240 |
|
241 |
gradio_app = gr.Interface(
|
242 |
predict,
|
243 |
-
inputs=gr.Image(label="
|
244 |
-
outputs=[gr.Image(label="
|
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 🔥 🔥 🔥 <br>\
|
250 |
Or, upload by yourself: <br>\
|
251 |
-
1. Upload images to be
|
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 🔥 🔥 🔥 <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>\
|