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)
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)
def __init__(self, keys: KeysCollection, spatial_axis: Optional[Union[Sequence[int], int]] = None) -> None: super().__init__(keys) self.flipper = Flip(spatial_axis=spatial_axis)
def __init__(self, keys: KeysCollection, spatial_axis=None): super().__init__(keys) self.flipper = Flip(spatial_axis=spatial_axis)
def __init__(self, keys, spatial_axis=None): super().__init__(keys) self.flipper = Flip(spatial_axis=spatial_axis)