Skip to content

[RFC] Different menaning of angle parameter in affine and rotate ops #5608

@vfdev-5

Description

@vfdev-5

In Torchvision stable API, there are 2 ops: affine and rotate that has angle as parameter.

However, positive angle parameter in F.affine op performs clockwise rotation.

angle (number): rotation angle in degrees between -180 and 180, clockwise direction.

while in F.rotate it is an opposite meaning, it does counter clockwise rotation:

angle (number): rotation angle value in degrees, counter-clockwise.

For Detectron2, Pillow or albumentations, they do counter clockwise rotation for positive angle value.

Question: Should we align F.affine op to perform counter clockwise rotation for positive angle value ?

cc @vfdev-5 @datumbox

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions