Spaces:
Running
Running
AAAAAAyq
commited on
Commit
·
086b1c4
1
Parent(s):
ca3609f
Update the interface layout
Browse files
app.py
CHANGED
|
@@ -28,12 +28,12 @@ description = """This is a demo on Github project 🏃 [Fast Segment Anything Mo
|
|
| 28 |
|
| 29 |
"""
|
| 30 |
|
| 31 |
-
examples = [["assets/
|
| 32 |
-
["assets/
|
| 33 |
-
["assets/
|
| 34 |
-
["assets/sa_10039.jpg"], ["assets/
|
| 35 |
|
| 36 |
-
default_example = examples[
|
| 37 |
|
| 38 |
css = "h1 { text-align: center } .about { text-align: justify; padding-left: 10%; padding-right: 10%; }"
|
| 39 |
|
|
@@ -197,7 +197,7 @@ cond_img = gr.Image(label="Input", value=default_example[0], type='pil')
|
|
| 197 |
|
| 198 |
segm_img = gr.Image(label="Segmented Image", interactive=False, type='pil')
|
| 199 |
|
| 200 |
-
input_size_slider = gr.components.Slider(minimum=512, maximum=1024, value=1024, step=64, label='
|
| 201 |
|
| 202 |
with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
|
| 203 |
with gr.Row():
|
|
|
|
| 28 |
|
| 29 |
"""
|
| 30 |
|
| 31 |
+
examples = [["assets/sa_8776.jpg"], ["assets/sa_414.jpg"],
|
| 32 |
+
["assets/sa_1309.jpg"], ["assets/sa_11025.jpg"],
|
| 33 |
+
["assets/sa_561.jpg"], ["assets/sa_192.jpg"],
|
| 34 |
+
["assets/sa_10039.jpg"], ["assets/sa_862.jpg"]]
|
| 35 |
|
| 36 |
+
default_example = examples[0]
|
| 37 |
|
| 38 |
css = "h1 { text-align: center } .about { text-align: justify; padding-left: 10%; padding-right: 10%; }"
|
| 39 |
|
|
|
|
| 197 |
|
| 198 |
segm_img = gr.Image(label="Segmented Image", interactive=False, type='pil')
|
| 199 |
|
| 200 |
+
input_size_slider = gr.components.Slider(minimum=512, maximum=1024, value=1024, step=64, label='Input_size (Our model was trained on a size of 1024)')
|
| 201 |
|
| 202 |
with gr.Blocks(css=css, title='Fast Segment Anything') as demo:
|
| 203 |
with gr.Row():
|