root commited on
Commit
dfe8975
1 Parent(s): 9599a85
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -64,11 +64,8 @@ def load_image_ui(load_edit, input_folder="example_tmp"):
64
 
65
 
66
  def run_segmentation_wrapper(image):
67
- mask_np_list,mask_label_list = run_segmentation(image)
68
- for img_path in Path("example_tmp").iterdir():
69
- if img_path.name in ["img_512.png"]:
70
- image = Image.open(img_path)
71
- image = image.convert('RGB')
72
  segmentation = create_segmentation(mask_np_list)
73
  print("!!", len(mask_np_list))
74
  max_val = len(mask_np_list)-1
 
64
 
65
 
66
  def run_segmentation_wrapper(image):
67
+ image, mask_np_list,mask_label_list = run_segmentation(image)
68
+ #image = image.convert('RGB')
 
 
 
69
  segmentation = create_segmentation(mask_np_list)
70
  print("!!", len(mask_np_list))
71
  max_val = len(mask_np_list)-1