phoebe777777 commited on
Commit
63e903c
·
verified ·
1 Parent(s): 471a816

Update inference_seg.py

Browse files
Files changed (1) hide show
  1. inference_seg.py +0 -1
inference_seg.py CHANGED
@@ -26,7 +26,6 @@ def load_model(use_box=False):
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
32
  # import torch
 
26
  def run(model, img_path, box=None, device="cpu"):
27
  output = model(img_path, box=box)
28
  mask = output
 
29
  return mask
30
  # import os
31
  # import torch