Spaces:
Runtime error
Runtime error
Guillermo Uribe Vicencio
commited on
Commit
·
2ca698a
1
Parent(s):
0420d82
app.py
CHANGED
|
@@ -244,9 +244,9 @@ config.model.backbone.pretrained=None
|
|
| 244 |
model = init_segmentor(config, ckpt, device='cpu')
|
| 245 |
custom_test_pipeline=process_test_pipeline(model.cfg.data.test.pipeline, None)
|
| 246 |
|
| 247 |
-
map_resume = []
|
| 248 |
func = partial(inference_on_file, model=model, custom_test_pipeline=custom_test_pipeline, map_resume=map_resume)
|
| 249 |
-
|
| 250 |
bar_data = pd.DataFrame(map_resume)
|
| 251 |
|
| 252 |
with gr.Blocks() as demo:
|
|
|
|
| 244 |
model = init_segmentor(config, ckpt, device='cpu')
|
| 245 |
custom_test_pipeline=process_test_pipeline(model.cfg.data.test.pipeline, None)
|
| 246 |
|
| 247 |
+
map_resume = [{"label": "", "qtt": 0}]
|
| 248 |
func = partial(inference_on_file, model=model, custom_test_pipeline=custom_test_pipeline, map_resume=map_resume)
|
| 249 |
+
print("")
|
| 250 |
bar_data = pd.DataFrame(map_resume)
|
| 251 |
|
| 252 |
with gr.Blocks() as demo:
|