Example #1
0
    def __init__(self, keys, prob=0.1, spatial_axis=None):
        super().__init__(keys)
        self.spatial_axis = spatial_axis
        self.prob = prob

        self._do_transform = False
        self.flipper = Flip(spatial_axis=spatial_axis)
Example #2
0
    def __init__(
        self, keys: KeysCollection, prob: float = 0.1, spatial_axis: Optional[Union[Sequence[int], int]] = None,
    ):
        super().__init__(keys)
        self.spatial_axis = spatial_axis
        self.prob = prob

        self._do_transform = False
        self.flipper = Flip(spatial_axis=spatial_axis)
Example #3
0
 def __init__(self, keys: KeysCollection, spatial_axis: Optional[Union[Sequence[int], int]] = None) -> None:
     super().__init__(keys)
     self.flipper = Flip(spatial_axis=spatial_axis)
Example #4
0
 def __init__(self, keys: KeysCollection, spatial_axis=None):
     super().__init__(keys)
     self.flipper = Flip(spatial_axis=spatial_axis)
Example #5
0
 def __init__(self, keys, spatial_axis=None):
     super().__init__(keys)
     self.flipper = Flip(spatial_axis=spatial_axis)