Skip to content

Commit 46f886c

Browse files
committed
Fix doc
1 parent 5770a03 commit 46f886c

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

gallery/plot_transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def plot(imgs, with_orig=True, row_title=None, **imshow_kwargs):
255255

256256
####################################
257257
# TrivialAugmentWide
258-
# ~~~~~~~~~~~
258+
# ~~~~~~~~~~~~~~~~~~
259259
# The :class:`~torchvision.transforms.TrivialAugmentWide` transform automatically augments the data.
260260
augmenter = T.TrivialAugmentWide()
261261
imgs = [augmenter(orig_img) for _ in range(4)]

torchvision/transforms/autoaugment.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -330,17 +330,17 @@ def __repr__(self) -> str:
330330
class TrivialAugmentWide(torch.nn.Module):
331331
r"""Dataset-independent data-augmentation with TrivialAugment Wide, as described in
332332
`"TrivialAugment: Tuning-free Yet State-of-the-Art Data Augmentation" <https://arxiv.org/abs/2103.10158>`.
333-
If the image is torch Tensor, it should be of type torch.uint8, and it is expected
334-
to have [..., 1 or 3, H, W] shape, where ... means an arbitrary number of leading dimensions.
335-
If img is PIL Image, it is expected to be in mode "L" or "RGB".
336-
337-
Args:
338-
num_magnitude_bins (int): The number of different magnitude values.
339-
interpolation (InterpolationMode): Desired interpolation enum defined by
340-
:class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.NEAREST``.
341-
If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` are supported.
342-
fill (sequence or number, optional): Pixel fill value for the area outside the transformed
343-
image. If given a number, the value is used for all bands respectively.
333+
If the image is torch Tensor, it should be of type torch.uint8, and it is expected
334+
to have [..., 1 or 3, H, W] shape, where ... means an arbitrary number of leading dimensions.
335+
If img is PIL Image, it is expected to be in mode "L" or "RGB".
336+
337+
Args:
338+
num_magnitude_bins (int): The number of different magnitude values.
339+
interpolation (InterpolationMode): Desired interpolation enum defined by
340+
:class:`torchvision.transforms.InterpolationMode`. Default is ``InterpolationMode.NEAREST``.
341+
If input is Tensor, only ``InterpolationMode.NEAREST``, ``InterpolationMode.BILINEAR`` are supported.
342+
fill (sequence or number, optional): Pixel fill value for the area outside the transformed
343+
image. If given a number, the value is used for all bands respectively.
344344
"""
345345

346346
def __init__(self, num_magnitude_bins: int = 30, interpolation: InterpolationMode = InterpolationMode.NEAREST,

0 commit comments

Comments
 (0)