Update app.py
Browse files
app.py
CHANGED
|
@@ -126,8 +126,7 @@ tab1 = gr.Interface(
|
|
| 126 |
inputs=gr.Image(label='', type="pil"),
|
| 127 |
outputs=[gr.Image(type="pil"), gr.Image(type="pil")],
|
| 128 |
title='Images with Ground Truth',
|
| 129 |
-
examples=sample_images
|
| 130 |
-
tab="Train"
|
| 131 |
)
|
| 132 |
|
| 133 |
# Create the video processing interface
|
|
@@ -136,8 +135,7 @@ tab2 = gr.Interface(
|
|
| 136 |
inputs=gr.File(label=""),
|
| 137 |
outputs=gr.File(label=""),
|
| 138 |
title='Images with Ground Truth',
|
| 139 |
-
examples=sample_images
|
| 140 |
-
tab="Test"
|
| 141 |
)
|
| 142 |
|
| 143 |
# Create a Multi Interface with Tabs
|
|
@@ -153,7 +151,8 @@ iface = gr.TabbedInterface([tab1, tab2],
|
|
| 153 |
We trained on 803 images and their segmentation masks (with split of 80/20%). For this multilabel segmentation task, we trained 4 models,
|
| 154 |
the basic 4-blocks U-net CNN, VGG16 U-Net, Resnet50 U-net and Efficient Net U-net. Then, I built an ensemble model that achieved a
|
| 155 |
validation accuracy of about 75% and dice score of about 0.6.
|
| 156 |
-
'''
|
|
|
|
| 157 |
|
| 158 |
# Launch the interface
|
| 159 |
iface.launch(share=True)
|
|
|
|
| 126 |
inputs=gr.Image(label='', type="pil"),
|
| 127 |
outputs=[gr.Image(type="pil"), gr.Image(type="pil")],
|
| 128 |
title='Images with Ground Truth',
|
| 129 |
+
examples=sample_images
|
|
|
|
| 130 |
)
|
| 131 |
|
| 132 |
# Create the video processing interface
|
|
|
|
| 135 |
inputs=gr.File(label=""),
|
| 136 |
outputs=gr.File(label=""),
|
| 137 |
title='Images with Ground Truth',
|
| 138 |
+
examples=sample_images
|
|
|
|
| 139 |
)
|
| 140 |
|
| 141 |
# Create a Multi Interface with Tabs
|
|
|
|
| 151 |
We trained on 803 images and their segmentation masks (with split of 80/20%). For this multilabel segmentation task, we trained 4 models,
|
| 152 |
the basic 4-blocks U-net CNN, VGG16 U-Net, Resnet50 U-net and Efficient Net U-net. Then, I built an ensemble model that achieved a
|
| 153 |
validation accuracy of about 75% and dice score of about 0.6.
|
| 154 |
+
''',
|
| 155 |
+
tab_names = ['Train','Test'])
|
| 156 |
|
| 157 |
# Launch the interface
|
| 158 |
iface.launch(share=True)
|