Guillermo Uribe Vicencio commited on
Commit
13075a5
·
1 Parent(s): 65d3323
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,7 +42,7 @@ from skimage import exposure
42
 
43
  import pandas as pd
44
 
45
-
46
  cdl_color_map = [{'value': 1, 'label': 'Natural vegetation', 'rgb': (233,255,190), 'qtt': 0},
47
  {'value': 2, 'label': 'Forest', 'rgb': (149,206,147), 'qtt': 0},
48
  {'value': 3, 'label': 'Corn', 'rgb': (255,212,0), 'qtt': 0},
@@ -244,7 +244,7 @@ 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 = [{"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)
 
42
 
43
  import pandas as pd
44
 
45
+ map_resume = [{"label": "", "qtt": 0}]
46
  cdl_color_map = [{'value': 1, 'label': 'Natural vegetation', 'rgb': (233,255,190), 'qtt': 0},
47
  {'value': 2, 'label': 'Forest', 'rgb': (149,206,147), 'qtt': 0},
48
  {'value': 3, 'label': 'Corn', 'rgb': (255,212,0), 'qtt': 0},
 
244
  model = init_segmentor(config, ckpt, device='cpu')
245
  custom_test_pipeline=process_test_pipeline(model.cfg.data.test.pipeline, None)
246
 
247
+
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)