The values of degrees
parameter of RandomRotation()
are inclusive so they should be [min, max]
and [-degrees, +degrees]
#8831
Open
Description
📚 The doc issue
The doc of RandomRotation()
says that the range of degrees
parameter is (min, max)
and (-degrees, +degrees)
as shown below but actually, the values of degrees
parameter are inclusive:
Parameters:
- degrees (sequence or number) – Range of degrees to select from. If degrees is a number instead of sequence like (min, max), the range of degrees will be (-degrees, +degrees).
Suggest a potential alternative/fix
So they should be [min, max]
and [-degrees, +degrees]
as shown below:
Parameters:
- degrees (sequence or number) – Range of degrees to select from. If degrees is a number instead of sequence like [min, max], the range of degrees will be [-degrees, +degrees].
Metadata
Assignees
Labels
No labels