liuyizhang commited on
Commit
d25c2a0
2 Parent(s): 82b6069 db51c0a

Merge branch 'main' of https://huggingface.co/spaces/yizhangliu/Grounded-Segment-Anything

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -712,6 +712,9 @@ def run_anything_task(input_image, text_prompt, task_type, inpaint_prompt, box_t
712
  mask_pil = input_mask_pil
713
  mask = input_mask
714
  else:
 
 
 
715
  masks_ori = copy.deepcopy(masks)
716
  if inpaint_mode == 'merge':
717
  masks = torch.sum(masks, dim=0).unsqueeze(0)
 
712
  mask_pil = input_mask_pil
713
  mask = input_mask
714
  else:
715
+ logger.info(f'masks_shape={masks.shape}')
716
+ logger.info(f'masks={masks}')
717
+
718
  masks_ori = copy.deepcopy(masks)
719
  if inpaint_mode == 'merge':
720
  masks = torch.sum(masks, dim=0).unsqueeze(0)