Spaces:
Running
on
Zero
Running
on
Zero
Update inference_seg.py
Browse files- 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
|