Skip to content

Commit

Permalink
Update torchvision/transforms/v2/_geometry.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug authored Aug 31, 2023
1 parent 601565b commit d32bfeb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions torchvision/transforms/v2/_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,12 +594,12 @@ class RandomRotation(Transform):
center (sequence, optional): Optional center of rotation, (x, y). Origin is the upper left corner.
Default is the center of the image.
..note::
.. note::
In theory, setting ``center`` has no effect if ``expand=True``, since the image center will become the
center of rotation. In practice however, due to numerical precision, this can lead to off-by-one
differences of the resulting image size compared to using the image center in the first place. Thus, when
setting ``expand=True``, it's best to leave ``center=None`` (default).
In theory, setting ``center`` has no effect if ``expand=True``, since the image center will become the
center of rotation. In practice however, due to numerical precision, this can lead to off-by-one
differences of the resulting image size compared to using the image center in the first place. Thus, when
setting ``expand=True``, it's best to leave ``center=None`` (default).
fill (number or tuple or dict, optional): Pixel fill value used when the ``padding_mode`` is constant.
Default is 0. If a tuple of length 3, it is used to fill R, G, B channels respectively.
Fill value can be also a dictionary mapping data type to the fill value, e.g.
Expand Down

0 comments on commit d32bfeb

Please sign in to comment.