Shengxiao0709 commited on
Commit
f4db8ac
·
verified ·
1 Parent(s): fa4f8ca

Update inference_seg.py

Browse files
Files changed (1) hide show
  1. inference_seg.py +1 -1
inference_seg.py CHANGED
@@ -25,7 +25,7 @@ def load_model(use_box=False):
25
  @torch.no_grad()
26
  def run(model, img_path, box=None, device="cpu"):
27
  output = model(img_path, box=box)
28
- mask = output["pred"]
29
  mask = (mask > 0).astype(np.uint8)
30
  return mask
31
  # import os
 
25
  @torch.no_grad()
26
  def run(model, img_path, box=None, device="cpu"):
27
  output = model(img_path, box=box)
28
+ mask = output
29
  mask = (mask > 0).astype(np.uint8)
30
  return mask
31
  # import os