NCJ commited on
Commit
68e2a74
1 Parent(s): f21be0c
Files changed (1) hide show
  1. demo/rm_bg.py +1 -0
demo/rm_bg.py CHANGED
@@ -8,6 +8,7 @@ def rm_bg(img, use_sam=False):
8
  img = img.resize((512, 512))
9
  output = rembg.remove(img)
10
  mask = np.array(output)[:, :, 3]
 
11
 
12
  # use sam for mask refinement
13
  if use_sam:
 
8
  img = img.resize((512, 512))
9
  output = rembg.remove(img)
10
  mask = np.array(output)[:, :, 3]
11
+ print(mask.shape)
12
 
13
  # use sam for mask refinement
14
  if use_sam: