gherget commited on
Commit
c94e841
1 Parent(s): ca0222e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -96,8 +96,12 @@ def inference(img,unique_only):
96
  detected_objects = []
97
  object_list_str = []
98
 
 
 
 
 
 
99
  box_locations = outputs["instances"].pred_boxes
100
- print(outputs["instances"])
101
  box_loc_screen = box_locations.tensor.cpu().numpy()
102
  unique_object_dict = {}
103
  for i, box_coord in enumerate(box_loc_screen):
 
96
  detected_objects = []
97
  object_list_str = []
98
 
99
+
100
+ masks = outputs["instances"].pred_masks
101
+ masks_screen = masks.cpu().numpy()
102
+ print(masks_screen)
103
+
104
  box_locations = outputs["instances"].pred_boxes
 
105
  box_loc_screen = box_locations.tensor.cpu().numpy()
106
  unique_object_dict = {}
107
  for i, box_coord in enumerate(box_loc_screen):