MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / __init__

Method __init__

utils/sam_utils/amg.py:22–27  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

20 """
21
22 def __init__(self, **kwargs) -> None:
23 for v in kwargs.values():
24 assert isinstance(
25 v, (list, np.ndarray, torch.Tensor)
26 ), "MaskData only supports list, numpy arrays, and torch tensors."
27 self._stats = dict(**kwargs)
28
29 def __setitem__(self, key: str, item: Any) -> None:
30 assert isinstance(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected