-
Notifications
You must be signed in to change notification settings - Fork 304
Conversation
@@ -24,6 +24,9 @@ def random_expand(img, max_ratio=4, fill=0, return_param=False): | |||
paper, this value is 4. | |||
fill (float, tuple or ~numpy.ndarray): The value of padded pixels. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float or ~numpy.ndarray
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think supporting tuple is convenient. Why do you want to drop it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me summarize.
fill
can be one of float, tuple or (C, 1, 1)
.
mean
is (C, 1, 1)
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fill can be one of float, tuple or (C, 1, 1).
mean is (C, 1, 1).
Yes. And I want to pass a tuple value that is never broadcasted to an image.
@@ -19,6 +19,9 @@ def resize_contain(img, size, fill=0, return_param=False): | |||
size (tuple of two ints): A tuple of two elements: | |||
:obj:`height, width`. The size of the image after resizing. | |||
fill (float, tuple or ~numpy.ndarray): The value of padded pixels. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
LGTM |
No description provided.