"...text-generation-inference.git" did not exist on "36dd16017c7211b7760d1daa188172bb902e486f"
Commit dc7db17e authored by Adam J. Stewart's avatar Adam J. Stewart Committed by Francisco Massa
Browse files

Typo and syntax fixes to transform docstrings (#887)

parent 164a2657
...@@ -572,7 +572,7 @@ class RandomPerspective(object): ...@@ -572,7 +572,7 @@ class RandomPerspective(object):
height : height of the image. height : height of the image.
Returns: Returns:
List containing [top-left, top-right, bottom-right, bottom-left] of the orignal image, List containing [top-left, top-right, bottom-right, bottom-left] of the original image,
List containing [top-left, top-right, bottom-right, bottom-left] of the transformed image. List containing [top-left, top-right, bottom-right, bottom-left] of the transformed image.
""" """
half_height = int(height / 2) half_height = int(height / 2)
...@@ -745,7 +745,7 @@ class TenCrop(object): ...@@ -745,7 +745,7 @@ class TenCrop(object):
size (sequence or int): Desired output size of the crop. If size is an size (sequence or int): Desired output size of the crop. If size is an
int instead of sequence like (h, w), a square crop (size, size) is int instead of sequence like (h, w), a square crop (size, size) is
made. made.
vertical_flip(bool): Use vertical flipping instead of horizontal vertical_flip (bool): Use vertical flipping instead of horizontal
Example: Example:
>>> transform = Compose([ >>> transform = Compose([
...@@ -975,6 +975,7 @@ class RandomRotation(object): ...@@ -975,6 +975,7 @@ class RandomRotation(object):
def __call__(self, img): def __call__(self, img):
""" """
Args:
img (PIL Image): Image to be rotated. img (PIL Image): Image to be rotated.
Returns: Returns:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment