Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -186,6 +186,14 @@ examples = [
|
|
| 186 |
['./demo/images/ADE_val_00001200.jpg', 'bridge, mountains, trees, water, sky, buildings, boats, animals, flowers, waterfalls, grasslands, rocks'],
|
| 187 |
]
|
| 188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
output_labels = ['segmentation map']
|
| 190 |
|
| 191 |
title = '<center><h2>Mask-Adapter + Segment Anything-2</h2></center>'
|
|
@@ -255,7 +263,9 @@ with gr.Blocks() as demo:
|
|
| 255 |
inputs=[img_state_points],
|
| 256 |
outputs=[img_state_points, input_image, output_image_point]
|
| 257 |
)
|
| 258 |
-
|
|
|
|
|
|
|
| 259 |
|
| 260 |
|
| 261 |
|
|
|
|
| 186 |
['./demo/images/ADE_val_00001200.jpg', 'bridge, mountains, trees, water, sky, buildings, boats, animals, flowers, waterfalls, grasslands, rocks'],
|
| 187 |
]
|
| 188 |
|
| 189 |
+
examples_point = [
|
| 190 |
+
['./demo/images/ADE_val_00000739.jpg'],
|
| 191 |
+
['./demo/images/000000290833.jpg'],
|
| 192 |
+
['./demo/images/2010_001315.jpg'],
|
| 193 |
+
['./demo/images/ADE_val_00000001.jpg'],
|
| 194 |
+
['./demo/images/000000000785.jpg'],
|
| 195 |
+
]
|
| 196 |
+
|
| 197 |
output_labels = ['segmentation map']
|
| 198 |
|
| 199 |
title = '<center><h2>Mask-Adapter + Segment Anything-2</h2></center>'
|
|
|
|
| 263 |
inputs=[img_state_points],
|
| 264 |
outputs=[img_state_points, input_image, output_image_point]
|
| 265 |
)
|
| 266 |
+
|
| 267 |
+
with gr.Row():
|
| 268 |
+
gr.Examples(examples=examples_point, inputs=input_image, outputs=output_image_point,examples_per_page=5)
|
| 269 |
|
| 270 |
|
| 271 |
|