Spaces:
Running
on
Zero
Running
on
Zero
File size: 338 Bytes
1834bc0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import numpy as np
class BaseSegmenter:
"""Base class for segmentation models """
def get_object_mask(self, image: np.ndarray) -> np.ndarray:
"""
Args:
image
Returns:
bool mask of shape, where True = foreground object.
"""
raise NotImplementedError
|