MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / __init__

Method __init__

monai/transforms/post/dictionary.py:751–763  ·  view source on GitHub ↗
(
        self,
        keys: KeysCollection,
        spatial_dims: int = 2,
        sigma: Sequence[float] | float | Sequence[torch.Tensor] | torch.Tensor = 0.0,
        prob_threshold: float = 0.5,
        box_size: int | Sequence[int] = 48,
        allow_missing_keys: bool = False,
    )

Source from the content-addressed store, hash-verified

749 backend = ProbNMS.backend
750
751 def __init__(
752 self,
753 keys: KeysCollection,
754 spatial_dims: int = 2,
755 sigma: Sequence[float] | float | Sequence[torch.Tensor] | torch.Tensor = 0.0,
756 prob_threshold: float = 0.5,
757 box_size: int | Sequence[int] = 48,
758 allow_missing_keys: bool = False,
759 ) -> None:
760 super().__init__(keys, allow_missing_keys)
761 self.prob_nms = ProbNMS(
762 spatial_dims=spatial_dims, sigma=sigma, prob_threshold=prob_threshold, box_size=box_size
763 )
764
765 def __call__(self, data: Mapping[Hashable, NdarrayOrTensor]):
766 d = dict(data)

Callers

nothing calls this directly

Calls 2

ProbNMSClass · 0.90
__init__Method · 0.45

Tested by

no test coverage detected