Skip to content

Commit cd2b7f0

Browse files
authored
spelling error (#2333)
I was reading through the code and noticed a few spelling errors orignal -> original maintaing -> maintaining
1 parent 148bac2 commit cd2b7f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

torchvision/transforms/functional.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def resize(img, size, interpolation=Image.BILINEAR):
306306
img (PIL Image): Image to be resized.
307307
size (sequence or int): Desired output size. If size is a sequence like
308308
(h, w), the output size will be matched to this. If size is an int,
309-
the smaller edge of the image will be matched to this number maintaing
309+
the smaller edge of the image will be matched to this number maintaining
310310
the aspect ratio. i.e, if height > width, then image will be rescaled to
311311
:math:`\left(\text{size} \times \frac{\text{height}}{\text{width}}, \text{size}\right)`
312312
interpolation (int, optional): Desired interpolation. Default is
@@ -555,11 +555,11 @@ def _parse_fill(fill, img, min_pil_version):
555555
def _get_perspective_coeffs(startpoints, endpoints):
556556
"""Helper function to get the coefficients (a, b, c, d, e, f, g, h) for the perspective transforms.
557557
558-
In Perspective Transform each pixel (x, y) in the orignal image gets transformed as,
558+
In Perspective Transform each pixel (x, y) in the original image gets transformed as,
559559
(x, y) -> ( (ax + by + c) / (gx + hy + 1), (dx + ey + f) / (gx + hy + 1) )
560560
561561
Args:
562-
List containing [top-left, top-right, bottom-right, bottom-left] of the orignal image,
562+
List containing [top-left, top-right, bottom-right, bottom-left] of the original image,
563563
List containing [top-left, top-right, bottom-right, bottom-left] of the transformed
564564
image
565565
Returns:
@@ -582,7 +582,7 @@ def perspective(img, startpoints, endpoints, interpolation=Image.BICUBIC, fill=N
582582
583583
Args:
584584
img (PIL Image): Image to be transformed.
585-
startpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the orignal image
585+
startpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the original image
586586
endpoints: List containing [top-left, top-right, bottom-right, bottom-left] of the transformed image
587587
interpolation: Default- Image.BICUBIC
588588
fill (n-tuple or int or float): Pixel fill value for area outside the rotated

0 commit comments

Comments
 (0)