We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a148994 commit ad128b7Copy full SHA for ad128b7
torchvision/transforms/functional.py
@@ -1004,7 +1004,7 @@ def _get_inverse_affine_matrix(
1004
# RotateScaleShear(a, s, (sx, sy)) =
1005
# = R(a) * S(s) * SHy(sy) * SHx(sx)
1006
# = [ s*cos(a - sy)/cos(sy), s*(-cos(a - sy)*tan(sx)/cos(sy) - sin(a)), 0 ]
1007
- # [ s*sin(a + sy)/cos(sy), s*(-sin(a - sy)*tan(sx)/cos(sy) + cos(a)), 0 ]
+ # [ s*sin(a - sy)/cos(sy), s*(-sin(a - sy)*tan(sx)/cos(sy) + cos(a)), 0 ]
1008
# [ 0 , 0 , 1 ]
1009
# where R is a rotation matrix, S is a scaling matrix, and SHx and SHy are the shears:
1010
# SHx(s) = [1, -tan(s)] and SHy(s) = [1 , 0]
0 commit comments