Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
liopeer committed Nov 7, 2024
1 parent 9f09fa8 commit f538d1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lightly/transforms/rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class RandomRotateDegrees:
"""

def __init__(self, prob: float, degrees: Union[float, Tuple[float, float]]):
self.transform: Callable[[Union[Image, Tensor]], Union[Image, Tensor]] = (
T.RandomApply([T.RandomRotation(degrees=degrees)], p=prob)
)
self.transform: Callable[
[Union[Image, Tensor]], Union[Image, Tensor]
] = T.RandomApply([T.RandomRotation(degrees=degrees)], p=prob)

def __call__(self, image: Union[Image, Tensor]) -> Union[Image, Tensor]:
"""Rotates the images with a given probability.
Expand Down

0 comments on commit f538d1d

Please sign in to comment.