Paolo-Fraccaro
commited on
Commit
•
5798a8e
1
Parent(s):
888c7e3
fix demo?
Browse files
app.py
CHANGED
@@ -184,6 +184,7 @@ def process_test_pipeline(custom_test_pipeline, bands=None):
|
|
184 |
|
185 |
return custom_test_pipeline
|
186 |
|
|
|
187 |
config = Config.fromfile(config_path)
|
188 |
config.model.backbone.pretrained=None
|
189 |
model = init_segmentor(config, ckpt, device='cpu')
|
@@ -217,9 +218,7 @@ with gr.Blocks() as demo:
|
|
217 |
btn.click(fn=func, inputs=inp, outputs=[inp1, inp2, inp3, out])
|
218 |
|
219 |
with gr.Row():
|
220 |
-
gr.Examples(examples=["chip_102_345_merged.tif",
|
221 |
-
"chip_104_104_merged.tif",
|
222 |
-
"chip_109_421_merged.tif"],
|
223 |
inputs=inp,
|
224 |
outputs=[inp1, inp2, inp3, out],
|
225 |
preprocess=preprocess_example,
|
|
|
184 |
|
185 |
return custom_test_pipeline
|
186 |
|
187 |
+
|
188 |
config = Config.fromfile(config_path)
|
189 |
config.model.backbone.pretrained=None
|
190 |
model = init_segmentor(config, ckpt, device='cpu')
|
|
|
218 |
btn.click(fn=func, inputs=inp, outputs=[inp1, inp2, inp3, out])
|
219 |
|
220 |
with gr.Row():
|
221 |
+
gr.Examples(examples=["chip_102_345_merged.tif", "chip_104_104_merged.tif", "chip_109_421_merged.tif"],
|
|
|
|
|
222 |
inputs=inp,
|
223 |
outputs=[inp1, inp2, inp3, out],
|
224 |
preprocess=preprocess_example,
|