-
Notifications
You must be signed in to change notification settings - Fork 304
Conversation
class TestRotate(unittest.TestCase): | ||
|
||
def test_rotate(self): | ||
img = np.random.uniform(size=(3, 24, 24)) |
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.
How about using non-square image for test?
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.
updated
Could you change argument |
i think continuous rotate support is different problem. |
Updated to use |
chainercv/transforms/image/rotate.py
Outdated
"""Rotate images by degrees. | ||
|
||
Args: | ||
img (~numpy.ndarray): An arrays that get flipped. This is in |
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.
flipped --> rotated
_available = False | ||
|
||
|
||
def _check_available(): |
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.
We don't need this function.
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 checked scipy availablity at the top of rotate
function.
chainercv/transforms/image/rotate.py
Outdated
CHW format. | ||
angle (float): Clock-wise rotation angle (degree) in [-180, 180]. | ||
expand (bool): The output shaped is adapted or not. | ||
If `True`, the input image is contained completel in the output. |
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.
:obj:`True`
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.
typo: completel
chainercv/transforms/image/rotate.py
Outdated
Args: | ||
img (~numpy.ndarray): An arrays that get flipped. This is in | ||
CHW format. | ||
angle (float): Clock-wise rotation angle (degree) in [-180, 180]. |
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.
add
rotate
forimg
.random_rotate
exists butrotate
does not exists.