Commit 3211b7ee authored by Anton Osokin's avatar Anton Osokin Committed by Soumith Chintala
Browse files

Fix docs for CenterCrop and RandomCrop (#203)

Wrong order of dimensions In transforms.CenterCrop and transforms.RandomCrop:
Documentation says it should be (w, h), but it actually is (h, w).
Fixing docs to match the code
parent 47bc8153
...@@ -204,7 +204,7 @@ class CenterCrop(object): ...@@ -204,7 +204,7 @@ class CenterCrop(object):
Args: Args:
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 (w, h), a square crop (size, size) is int instead of sequence like (h, w), a square crop (size, size) is
made. made.
""" """
...@@ -275,7 +275,7 @@ class RandomCrop(object): ...@@ -275,7 +275,7 @@ class RandomCrop(object):
Args: Args:
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 (w, h), a square crop (size, size) is int instead of sequence like (h, w), a square crop (size, size) is
made. made.
padding (int or sequence, optional): Optional padding on each border padding (int or sequence, optional): Optional padding on each border
of the image. Default is 0, i.e no padding. If a sequence of length of the image. Default is 0, i.e no padding. If a sequence of length
......
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