Skip to content

Doc for rotate_range indicates the wrong sign #8340

Description

@maxime915

Hello,

I think there is an extra minus sign in the doc for the first value of the rotate_range parameter.

`uniform[-rotate_range[i][0], rotate_range[i][1])` will be used to generate the rotation parameter

The method _get_rand_param uses the range without any minus sign added to the first argument.

out_param.append(self.R.uniform(f[0], f[1]) + add_scalar)

If you agree that this is just a documentation issue, I'd be happy to search for other transform having the same issue (RandAffine and RandAffined seem to have the same issue) and create a PR to remove the extra signs.

Best

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions