Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -629,6 +629,12 @@ with gr.Blocks(theme=theme, title="Car Window Segmentation") as demo:
|
|
| 629 |
with gr.Row():
|
| 630 |
submit_btn_seq = gr.Button("Run All Models in Sequence", variant="primary", size="lg")
|
| 631 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 632 |
gr.Markdown("---")
|
| 633 |
gr.Markdown("### 1️⃣ YOLOv8x-seg (Fine-Tuned)")
|
| 634 |
with gr.Row():
|
|
@@ -671,15 +677,6 @@ with gr.Blocks(theme=theme, title="Car Window Segmentation") as demo:
|
|
| 671 |
seq_mrcnn_img, seq_mrcnn_bw, seq_mrcnn_stats,
|
| 672 |
seq_segf_img, seq_segf_bw, seq_segf_stats]
|
| 673 |
)
|
| 674 |
-
|
| 675 |
-
if mirror_examples:
|
| 676 |
-
gr.Markdown("### Click any window image below to load it into the sequence tab")
|
| 677 |
-
compare_gallery = gr.Gallery(value=mirror_examples, columns=10, height=120, object_fit="cover", allow_preview=False, show_label=False)
|
| 678 |
-
|
| 679 |
-
def load_compare_img(evt: gr.SelectData):
|
| 680 |
-
return mirror_examples[evt.index]
|
| 681 |
-
|
| 682 |
-
compare_gallery.select(fn=load_compare_img, inputs=None, outputs=input_image_seq)
|
| 683 |
|
| 684 |
if __name__ == "__main__":
|
| 685 |
demo.launch()
|
|
|
|
| 629 |
with gr.Row():
|
| 630 |
submit_btn_seq = gr.Button("Run All Models in Sequence", variant="primary", size="lg")
|
| 631 |
|
| 632 |
+
if mirror_examples:
|
| 633 |
+
gr.Markdown("### Or click any example image below to load it:")
|
| 634 |
+
compare_gallery = gr.Gallery(value=mirror_examples, columns=10, height=120, object_fit="cover", allow_preview=False, show_label=False)
|
| 635 |
+
def load_compare_img(evt: gr.SelectData): return mirror_examples[evt.index]
|
| 636 |
+
compare_gallery.select(fn=load_compare_img, inputs=None, outputs=input_image_seq)
|
| 637 |
+
|
| 638 |
gr.Markdown("---")
|
| 639 |
gr.Markdown("### 1️⃣ YOLOv8x-seg (Fine-Tuned)")
|
| 640 |
with gr.Row():
|
|
|
|
| 677 |
seq_mrcnn_img, seq_mrcnn_bw, seq_mrcnn_stats,
|
| 678 |
seq_segf_img, seq_segf_bw, seq_segf_stats]
|
| 679 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 680 |
|
| 681 |
if __name__ == "__main__":
|
| 682 |
demo.launch()
|